任务控制中 Mojave 10.14 的标准配置是选中“显示使用单独的空间”。
我希望它不被选中...
有没有办法用 applescript/osascript 做到这一点?
这是我尝试过的,但它没有点击复选框..
if application "System Preferences" is running then quit application
"System Preferences"
repeat until application "System Preferences" is not running
delay 0.1
end repeat
tell application "System Preferences" to reveal pane id "com.apple.preference.expose"
tell application "System Events" to tell process "System Preferences" to
tell window "Mission Control"
repeat while not (exists of checkbox "Displays have separate Spaces")
delay 0.1
end repeat
click checkbox "Displays have separate Spaces"
end tell
quit application "System Preferences"