【发布时间】:2015-12-17 03:52:19
【问题描述】:
编写 AppleScript 以打开 Image Capture 并单击 Import All 按钮。
tell application "Image Capture"
activate
tell application "System Events"
tell process "Image Capture"
click button "Import All" of group 1 of splitter group 1 of window 1
end tell
end tell
end tell
图像捕获打开,但脚本抛出一条错误消息,指出找不到“全部导入”按钮。
已遵循其他线程上关于如何在 Accessibility Inspector 中检查位置以及如何将其转换为 AppleScript 指令的建议。
缺少什么?
【问题讨论】:
标签: applescript buttonclick image-capture