Skip to content

Instantly share code, notes, and snippets.

@TramPamPam
Created February 11, 2021 11:09
Show Gist options
  • Save TramPamPam/49b14caa554e91bbf9224546387eeccf to your computer and use it in GitHub Desktop.
Save TramPamPam/49b14caa554e91bbf9224546387eeccf to your computer and use it in GitHub Desktop.
AppleScript to switch clock appearance
set currentValue to ¬
(do shell script ¬
"defaults read com.apple.menuextra.clock 'IsAnalog'") ¬
as integer as boolean
do shell script ¬
"defaults write com.apple.menuextra.clock 'IsAnalog' -bool " & (not currentValue) & ";"
@TramPamPam
Copy link
Author

switch@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment