Created
March 26, 2020 02:26
-
-
Save lexrus/22fec0e334adebb6b7ab92a9cef66b74 to your computer and use it in GitHub Desktop.
Workaround the HDR bug of macOS Catalina 10.15.4
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
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