【发布时间】:2014-05-13 12:56:35
【问题描述】:
我正在尝试使用 AppleScript 复制数字文件中的工作表(我每天都需要基于模板的新工作表)。 我对 AppleScript 真的很陌生,但我已经用它来填充一些单元格,其中包含我从运行的 python 脚本中获得的结果,但这一点仍然是手动的...... =/
tell application "Numbers"
tell document 1
set thisSh to make new sheet with properties {name:"May14"}
duplicate sheet "Template" to sheet "May14"
end tell
end tell
上面的代码返回错误:error "Numbers got an error: Sheets can not be copied." number -1717,因此,我的问题是:有没有办法复制数字表?
我目前正在运行编号为 3.2 的 iWork '14
谢谢!
附:我还尝试了duplicate every table of sheet "Template" to sheet "May14",但出现了类似的错误:Tables can not be copied.
【问题讨论】:
-
你有哪个版本的 Numbers?
-
@GrzegorzAdamKowalski,我使用的是 Numbers 3.2
标签: macos applescript iwork