【发布时间】:2020-04-24 15:58:24
【问题描述】:
我正在尝试在 automator 中为苹果程序编号运行一个非常简单的脚本。我尝试了几个不同的脚本都没有成功。
使用以下代码:
on run {input, parameters}
tell application "Numbers"
activate
tell document 1 to tell sheet 1 to set the value of cell "B3" to 0
tell document 1 to tell sheet 1 to set the value of cell "C4" to 42
end tell
return input
end run
我收到以下错误消息:
“数字出错:无法将文档 1 的工作表 1 的单元格“B3”设置为 0。”
发布的问题与以下解决方案几乎相同:
on run {input, parameters}
tell application "Numbers"
tell table 1 of sheet 3 of document 1
set the value of cell 1 of column "E" to 1000
end tell
end tell
return input
end run
但这给了我以下错误信息:
“编号出错:无法将文档 1 的表 1 设置为 1000。”
这篇其他帖子确实提到它可能与特权有关,但没有详细说明,我无法找到有关此的更多信息。
谁能帮帮我?
谢谢。
【问题讨论】:
标签: numbers applescript