Created
July 13, 2020 14:35
-
-
Save saralilyb/ec5c1fbf560d0746c4f21d93b6a25fd7 to your computer and use it in GitHub Desktop.
A simple JavaScript script (JXA) to toggle Dark Mode in macOS
This file contains hidden or 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
// Toggles dark mode in macOS | |
pref = Application("System Events").appearancePreferences | |
pref.darkMode = !pref.darkMode() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment