What am I doing wrong in this command?

Discussion in 'Mac Apps and Mac App Store' started by TommyFish29, Nov 10, 2014.

  1. TommyFish29 macrumors newbie

    Joined:
    Aug 23, 2014
    #1
    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!

    [​IMG]
     
  2. kryten2, Nov 10, 2014
    Last edited: Nov 10, 2014

    kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #2
    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";
    }
     

Share This Page