AppleScript:击键:太慢
AppleScript : keystroke : too slow
我的脚本上的击键大约需要 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
所以基本上,点击它,显示点击弹出按钮,等待 7 秒,然后继续脚本。
有什么想法吗?
不要抱太大希望,但您可以尝试将问题行包装在 time out
或 ignoring application responses
.
中
try
with timeout of x seconds
--
end timeout
end try
.
ignoring application responses
--
end ignoring
我的脚本上的击键大约需要 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
所以基本上,点击它,显示点击弹出按钮,等待 7 秒,然后继续脚本。
有什么想法吗?
不要抱太大希望,但您可以尝试将问题行包装在 time out
或 ignoring application responses
.
try
with timeout of x seconds
--
end timeout
end try
.
ignoring application responses
--
end ignoring