Created
January 30, 2015 03:41
-
-
Save mrManner/e76b0a1e59284439dbd7 to your computer and use it in GitHub Desktop.
Darkmode switching Applescript
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
-- darkmode_switcher.applescript | |
-- darkmode-switcher | |
tell application "System Events" | |
tell appearance preferences | |
get properties | |
set currentValue to dark mode | |
if currentValue is false then | |
set properties to {dark mode:true} | |
else if currentValue is true then | |
set properties to {dark mode:false} | |
end if | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment