AppleScript:击键:太慢了

时间:2015-05-20 13:38:27

标签: applescript keystroke

我的脚本上的击键大约需要5/7秒才能进入下一步。 我没有设置任何延迟。

例如:

-- Click 1
    click pop up button 1 of group 2 of group 2 of group 1 of group 2 of group 6 of group 2 of group 1 of group 4 of UI element 1 of scroll area 1 of group 1 of splitter group 1 of window 1
    keystroke "Edit"
    keystroke return
    -- Click 2
    click pop up button 1 of group 2 of group 1 of group 1 of group 2 of group 2 of group 6 of group 2 of group 1 of group 4 of UI element 1 of scroll area 1 of group 1 of splitter group 1 of window 1
    keystroke "Standard"
    keystroke return

基本上,点击它,显示Click Pop up按钮,等待7 secondes,然后继续脚本。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

不要抱有希望,但您可以尝试在time outignoring application responses中填写问题行。

try
    with timeout of x seconds
        --
    end timeout
end try

ignoring application responses
    --
end ignoring