Skip to content

Instantly share code, notes, and snippets.

@mrManner
Created January 30, 2015 03:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrManner/e76b0a1e59284439dbd7 to your computer and use it in GitHub Desktop.
Save mrManner/e76b0a1e59284439dbd7 to your computer and use it in GitHub Desktop.
Darkmode switching Applescript
-- 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