AppleScript
tell app "System Events" to tell appearance preferences to set dark mode to not dark mode
shell
# shell 调用 AppleScript
osascript -e 'tell app "System Events" to tell appearance preferences to set dark mode to not dark mode'
tell app "System Events" to tell appearance preferences to set dark mode to not dark mode
# shell 调用 AppleScript
osascript -e 'tell app "System Events" to tell appearance preferences to set dark mode to not dark mode'