MacOS – El Capitan Terminal command to toggle clock between Analog and Digital

macos

Is there a terminal command that will toggle between the Analog and Digital clock in the menu bar?

Can do it via point-and-click, but would like to incorporate it into a script that prepares my computer for recording screencasts.

Best Answer

Make it analog: defaults write com.apple.menuextra.clock IsAnalog 1 && killall -KILL SystemUIServer

Make it digital: defaults write com.apple.menuextra.clock IsAnalog 0 && killall -KILL SystemUIServer