【发布时间】:2011-10-27 03:23:40
【问题描述】:
我有以下 Applescript:
tell application "Microsoft Excel"
tell active workbook
make new picture at end with properties {save with document:true, file name:"/Users/yuval/Pictures/foobar.jpg"}
end tell
end tell
根据几个来源,这应该有效。
但是,每次我运行脚本时都会收到消息
Microsoft Excel 出现错误:无法制作班级图片。
在描述中,我看到了错误
错误“Microsoft Excel 出现错误:无法制作班级图片。”数字 -2710 从图片到课堂
经过两个小时的搜索,我完全不知道该怎么做。任何帮助将不胜感激!
详情: 在 Mac OS X 10.7 Lion 上运行 Microsoft Excel 2011
【问题讨论】:
标签: excel automation applescript ms-office ui-automation