-
-
Save kgrz/400cea0e99436b24f3c85b858b1c76e9 to your computer and use it in GitHub Desktop.
Workaround the HDR bug of macOS Catalina 10.15.4
This file contains hidden or 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
tell application "System Preferences" | |
activate | |
end tell | |
tell application "System Events" | |
tell process "System Preferences" | |
activate | |
delay 1 | |
click menu item "Displays" of menu "View" of menu bar 1 | |
delay 1 | |
tell window "LG HDR 4K" | |
delay 1 | |
if (exists tab group 1) then | |
click radio button "Display" of tab group 1 | |
if (exists checkbox "High Dynamic Range" of tab group 1) then | |
click checkbox "High Dynamic Range" of tab group 1 | |
delay 5 | |
click checkbox "High Dynamic Range" of tab group 1 | |
end if | |
end if | |
end tell | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment