Disabling iCloud as Default Save Location in OSX

With iCloud integration in OSX, the default save location for many of the text applications without iCloud integration is now iCloud. To disable iCloud as the default save location for documents and change it to be On My Mac , use the following command in the terminal:

defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false 

To re-enable iCloud as the default save location for documents, simply type the following command in the terminal to revert back to the default location. 

defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool true