Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TommyFish29

macrumors newbie
Original poster
Aug 23, 2014
3
0
Trying to change the default screenshot directory to a specific folder in my google drive, but when I try the following command

Code:
defaults write com.apple.screencapture location ‘~/Users/tommy\Google Drive\Sync\iMac\iMac Screenshots’

I get this error

Code:
2014-11-10 21:49:43.644 defaults[2184:76708] Unexpected argument DriveSynciMaciMac; leaving defaults unchanged.

and I don't know what I'm doing wrong.

All help would be appreciated.
Thanks!

PLeHlOQ.png
 
Look at the first line in your screenshot e.g. bla/bla/bla
Notice the use of forward slashes. Look at the command and notice the backslashes. Also ~ is the same as /Users/tommy.

Use :

Code:
defaults write com.apple.screencapture location "/Users/tommy/Google Drive/Sync/iMac/iMac Screenshots"

defaults read com.apple.screencapture
{
    location = "/Users/tommy/Google Drive/Sync/iMac/iMac Screenshots";
}
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.