Change file save location
1 answer
Set the default directory for all applications not previously launched:
defaults write NSGlobalDomain NSNavLastRootDirectory "~/Desktop"
Overwrite all previous locations for apps that were previously launched:
find ~/Library/Preferences -name "*.plist" -exec grep -l NSNavLastRootDirectory {} \; | while read domain; do domain=${domain%.plist} ; defaults write "$domain" NSNavLastRootDirectory "~/Desktop"; done
In both cases, replace "~ / Desktop" with your path. If it contains spaces or tilde, remember to use quotes.
+5
source to share