Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

redpandadev

macrumors 6502
Original poster
Jun 3, 2014
335
288
Code:
tell application "System Events" to tell appearance preferences to set dark mode to not dark mode

Use this AppleScript one-liner to toggle dark mode however you see fit. Perhaps the most useful thing to do is to create an Automator workflow (use the "Run AppleScript" action) which can be assigned a keyboard shortcut or even be added to the Touch Bar.

Hopefully this is useful for someone.
 
  • Like
Reactions: sashimimi
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.