applescript - AppleScript - 语法错误:预期的行尾但找到“””
问题描述
我是 AppleScript 的初学者,我正在尝试编写一个脚本,该脚本将直接从 Numbers 表中将数据写入列表。
所以我编写了这个函数:
on readTableABC(sheetName)
set readTable to {}
tell table "Table 1" of sheetName
set rowCellCount to count of cells of column "A"
tell column "B"
repeat with i from 2 to rowCellCount
set the end of readTable to value of cell i
end repeat
end tell
end tell
return readTable
end readTableABC
sheetName 实际上将采用 Numbers 文件的工作表名称。
当我编译时,我得到一个错误,上面写着:
语法错误:预期的行尾但找到了 """ 。
并且光标显示这个字符:[编译器指出的字符][1][1]:https://i.stack.imgur.com/VUqxa.png
你知道错误在哪里吗?
非常感谢你的帮助。尼古拉斯
解决方案
正如 red_menace 所述:为了使用 Numbers 应用程序中的脚本术语,它们需要包含在告诉应用程序“Numbers”语句中,或者需要声明使用应用程序“Numbers”语句。
推荐阅读
- azure - 使用复杂参数的 Azure 流分析 c# UDF on Edge
- kubernetes - Istio DestinationRule 在标头之前给出上游连接错误或断开/重置
- python - 什么触发 QTreeView 在 QAbstractItemModel.data() 函数中请求 SizeHintRole
- csv - 将谷歌工作表发布为 csv 文件时出现行尾问题
- python - python flask:异步请求
- java - 无法统计应用程序。在将 SpringBoot 从 2.0.6.RELEASE 更新到 2.1.0.RELEASE 之后
- c# - Lambda 表达式而不是 Delegate
- java - Android:以编程方式在新活动中创建线性布局
- jenkins - JNLP 的秘密从何而来?
- wordpress - 选择一个 wordpress 主题