Last active
August 15, 2019 02:29
-
-
Save th507/51288af248590bd853b80e1d3100af99 to your computer and use it in GitHub Desktop.
Toggle macOS Dark Mode (via JSXA & macOS Script Editor Automation)
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
pref = Application("System Events").appearancePreferences | |
// weird syntax with no documentation... | |
pref.darkMode = !pref.darkMode() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment