Apple脚本 - 如何单击按钮菜单中的菜单项?

时间:2018-04-12 08:52:24

标签: applescript

enter image description here

请在上面找到元素路径的截图。单击单击菜单项" X"时,Apple脚本事件会引发错误。窗口按钮3的菜单1"电影录制"

1 个答案:

答案 0 :(得分:0)

你必须click按钮,稍等一下然后pick菜单项

activate application "QuickTime Player"
tell application "System Events"
    tell process "QuickTime Player"
        tell window "Movie Recording"
            click button 3
            delay 0.2
            pick menu item "Maximum" of menu 1 of button 3
        end tell
    end tell
end tell
相关问题