我是AppleScript的初学者,我正在编写一个脚本,它将直接从数字表中将数据写入列表。
所以我编写了这个函数:
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实际上将取数字文件的工作表名。
当我编译时,我得到一个错误,它说:
语法错误:行的预期结束但找到“”。
游标显示了这个字符:编译器1:https://i.stack.imgur.com/VUqxa.png指出的字符
你知道哪里会出错吗?
非常感谢你的帮助。尼古拉斯
发布于 2020-07-01 15:58:58
正如red_menace所提到的:为了使用数字应用程序中的脚本术语,需要将它们包含在tell应用程序“Number”语句中,或者需要声明use应用程序“Number”语句中。
https://stackoverflow.com/questions/62617577
复制相似问题