Created
May 27, 2020 19:56
-
-
Save jtaby/bbe57e71d40bd62b174cb4e19c8800cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
tell application "System Preferences" | |
activate | |
reveal pane "Displays" | |
end tell | |
tell application "System Events" | |
tell application process "System Preferences" | |
set frontmost to true | |
repeat until exists tab group 1 of window "LG HDR 5K" | |
end repeat | |
get tab group 1 of window "LG HDR 5K" | |
tell tab group 1 of window "LG HDR 5K" | |
click radio button "Scaled" | |
(* The 3 here refers to the third option. Change this number to what you want to select from your scaled resolutions *) | |
click radio button 3 of radio group 1 of group 1 | |
end tell | |
end tell | |
end tell | |
tell application "System Preferences" to quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment