# Save to disk or iCloud by default

Choose whether the default file save location is on disk or iCloud

  • Tested on macOS:
    • Catalina
  • Parameter type: bool

# Set to true (default value)

iCloud Documents is the default directory opened in the fileviewer dialog when saving a new document

defaults write NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud" -bool "true" 

# Set to false

home directory is opened in the fileviewer dialog when saving a new document

defaults write NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud" -bool "false" 

# Read current value

defaults read NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud"

# Reset to default value

defaults delete NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud"