Created
February 11, 2021 11:09
-
-
Save TramPamPam/49b14caa554e91bbf9224546387eeccf to your computer and use it in GitHub Desktop.
AppleScript to switch clock appearance
This file contains 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
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) & ";" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment