AppleScript导入全部图像捕获无法正常工作

时间:2016-09-09 00:51:14

标签: image macos applescript capture automator

我最近遇到了以下脚本来导入所有图像捕获:

tell application "Image Capture"
    activate
    tell application "System Events"
        tell process "Image Capture"
            click button 3 of group 2 of group 1 of splitter group 1 of window 1
        end tell
    end tell
end tell

这在最新版本6.7中不起作用。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

这对我有用,但您可能需要在此脚本中调整延迟值。

tell application "Image Capture"
    activate
    delay 5
    tell application "System Events"
        click button "Import All" of group 2 of splitter group 1 of window "Image Capture" of application process "Image Capture"
    end tell
end tell