Skip to content

Instantly share code, notes, and snippets.

@lexrus
Created March 26, 2020 02:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lexrus/22fec0e334adebb6b7ab92a9cef66b74 to your computer and use it in GitHub Desktop.
Save lexrus/22fec0e334adebb6b7ab92a9cef66b74 to your computer and use it in GitHub Desktop.
Workaround the HDR bug of macOS Catalina 10.15.4
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