【发布时间】:2021-10-17 16:02:54
【问题描述】:
我尝试使用 AppleScript 调整显示 > underscan 从 Off 到 2nd level 的 underscan 设置栏。因为我的 Mac Mini 会在我每次打开电视或从睡眠中醒来时自动关闭欠扫描设置。
我参考了网上的一些编码,确实做了打开“设置”和“显示”选项卡的代码,但我不知道下一步。有谁知道其他编码应该是什么?
我的代码:
activate application "System Preferences"
tell application "System Events"
tell process "System Preferences"
click button "Displays" of scroll area 1 of window "System Preferences"
delay 0.5
tell tab group 1 of window "42PFD5519/30"
click radio button "Default for Display"
-- What code should i use?
end tell
end tell
delay 0.5
quit application "System Preferences"
end tell
和参考照片
【问题讨论】:
标签: javascript macos applescript