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

Hearn2

macrumors newbie
Original poster
Nov 9, 2017
4
0
Hey everyone.

I am currently trying to change the directory for my screendumps on my Macbook Pro 2011 Late running High Sierra. I am succesful in changing my directory on my SSD/main drive, but simply can't figure out how to change the default directory to my other volume - my old HDD.

I am using this command for changing the directory on my SSD:

defaults write com.apple.screencapture location ~/Path/
killall SystemUIServer​

It works totally fine - swapped a few times to my Documents and Picture folders to make sure I got it right.

I have tried the following commands to save it to my HDD:

cd /Volumes/"HDD 750GB"/
defaults write com.apple.screencapture location ~/Dropbox/
killall SystemUIServer

cd /Volumes/"HDD 750GB"/
defaults write com.apple.screencapture location /Dropbox/
killall SystemUIServer​

The actual path when i type it in Finder is: /Volumes/HDD 750GB/Dropbox/Subfolder with spaces/Screenshots/ and I have of course tried this, but since it does not even work for the main dropbox folder I figured I wasn't typing the path wrong.
I have no problem in selecting the actual Dropbox and Dropbox subfolder with cd /path/.

I've been trying to browse around for a while now, but with no luck. I am certain this possible and that one of you guys knows the answer.

I hope you can help me,

Thanks heaps in advance.
 

kryten2

macrumors 65816
Mar 17, 2012
1,115
99
Belgium
You can try with single or double quotes eg :

Code:
defaults write com.apple.screencapture location '/Volumes/HDD 750GB/Dropbox/Subfolder with spaces/Screenshots/'
defaults write com.apple.screencapture location "/Volumes/HDD 750GB/Dropbox/Subfolder with spaces/Screenshots/"
 
  • Like
Reactions: Hearn2

Hearn2

macrumors newbie
Original poster
Nov 9, 2017
4
0
Thanks Kryten2.

Double qoutation mark around the entire thing worked!

I ended up using this code:

defaults write com.apple.screencapture location "/Volumes/HDD 750GB/Dropbox/SUB FOLDER WITH SPACES/Screenshots"​

Meanwhile on another forum I was told to drag and drop the actual path (I didn't realise you could do that) so I tested this code too, which worked completely fine:

defaults write com.apple.screencapture location /Volumes/HDD\ 750GB/Dropbox/SUB\ FOLDER\ WITH\ SPACES/Screenshots​
It seems so simple once you get help, lol.

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.