Created
October 26, 2018 01:50
-
-
Save round/1a7cf44649bacaeffecdd91912145203 to your computer and use it in GitHub Desktop.
Toggle Night Shift
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 | |
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