【发布时间】:2019-02-19 22:16:06
【问题描述】:
我目前在我的办公室使用 2 个屏幕和我的 macbook。每天几次,其中一种屏幕颜色非常接近红色光谱。我可以通过将刷新率更改为 50 再回到 60 来让屏幕恢复正常颜色。
我想编写脚本,每次登录时都会自动发生这种情况。我想用applescript和automator来实现这一点。
到目前为止我在网上找到的:
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events"
tell process "System Preferences"
click radio button "Display" of tab group 1 of window "BenQ GL2450H (2)"
delay 1
******************************************
Change refresh rate back and forward, how?
******************************************
end tell
end tell
delay 1
tell application "System Preferences"
quit
end tell
【问题讨论】:
标签: macos applescript automator