我正在尝试使用 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
谢谢!
PS我也尝试duplicate every table of sheet "Template" to sheet "May14"
过类似的错误:Tables can not be copied.