Skip to content

Instantly share code, notes, and snippets.

@round
Created October 26, 2018 01:50
Show Gist options
  • Save round/1a7cf44649bacaeffecdd91912145203 to your computer and use it in GitHub Desktop.
Save round/1a7cf44649bacaeffecdd91912145203 to your computer and use it in GitHub Desktop.
Toggle Night Shift
tell application "System Preferences"
activate
reveal anchor "displaysNightShiftTab" of pane id "com.apple.preference.displays"
delay 1
end tell
tell application "System Events"
tell process "System Preferences"
click checkbox 1 of tab group 1 of window 1
end tell
end tell
tell application "System Preferences"
quit
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment