我正在尝试制作一个可以切换空间自动重新排列的 AppleScript。我能够让 AppleScript 打开系统首选项并进入任务控制设置,但是我不确定如何选中我想要更改的框。
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
click menu item "Mission Control" of menu "View" of menu bar 1
delay 2
tell window "Mission Control"
//additional code goes here
end tell
end tell
end tell
Run Code Online (Sandbox Code Playgroud)
有没有办法查看窗口的组件是什么,以便我知道在我能够访问切换设置的复选框之前是否需要进入表格或其他内容
applescript ×1