toggle iCloud preferences from terminal or applescript
Hi all,
I'm looking for a script to toggle iCloud preferences in system preferences.
I need to automatically uncheck all the voices (Photos, Mail, Contacts, etc) leaving only iCloud Drive and Find My Mac.
In iCloud Drive settings I also need to uncheck everything, leaving only Desktop & Documents Folders
Is there a way to do so with terminal or applescript?
Thanks!
Mac mini, macOS 10.14