Change the Screen Shot Save File Location in Mac OS X
By default, anytime you take a screen capture in Mac OS X, the resulting screenshot file will save to the current users desktop. This makes retrieval very easy and is very appropriate for the average Mac user, but for those who take a lot of screen shots in OS X, they may find their desktop to be cluttered with the screenshot files rather quickly.
An excellent solution is to adjust the default location of where Mac OS X saves captured screen shot files to another location in the file system when Command + Shift + 3 is pressed, this walkthrough will show you how to do that with a defaults command.
How to Change Where Screen Shots Save on Mac
You will need to use the command line to change the save location of screen shots in Mac OS X. Thus, the first thing you’ll need to do is launch the Terminal app from /Applications/Utilities/ to get a prompt.
The general syntax for changing screenshot file location is as follows, note it must be entered on a single line and with a proper path set for the new screencapture save location to take effect:
defaults write com.apple.screencapture location /path/;killall SystemUIServer
Change the ‘/path/’ sequence to where you want the screen shot files to save to. For example, if I want to have the screenshots appear in the user (~) Pictures folder, I would use:
defaults write com.apple.screencapture location ~/Pictures/
Hit the return key to set ~/Pictures as the location. You’ll need to follow it up with a SystemUIServer relaunch too:
Here is what this defaults sequence may look like as entered into the Terminals command line prompt:
Remember that ~ (tilde) is a shortcut to the current user home directory. A full path can be used as well, as we’ll discuss in a moment.
If you want to make a unique folder within the ~/Pictures/ directory to save your screen shots too, you can do that from the Finder as usual, or from the command line with the following command to create a directory named “Screenshots”:
Now to set that new directory as the default saved location for captured screen images use the following syntax:
defaults write com.apple.screencapture location ~/Pictures/Screenshots/
For the changes to take effect without rebooting, kill SystemUIServer process to relaunch it and set the location:
That’s it, hit “Command+Shift+3” to take a screen shot and watch as the file is no longer saved to the user Desktop, but to the newly defined screen shot location.
This means the next time you take a screenshot (or as Windows converts like to say, Print Screen on a Mac), the screenshot file will appear at the location you specified.
Note that some users in the comments have experienced syntax issues when typing the tilde (~) as a shortcut for the Home folder, that shouldn’t be an issue if used properly, but nonetheless you can get around that by implying a full path to the home directory as follows:
defaults write com.apple.screencapture location /Users/USERNAME/Pictures/
Where “USERNAME” is the precise shortname of the users home directory, followed by the desired path to set as the save location for future screen captures. Again, one must killall SystemUIServer or log out and back in again for the change to take effect.
Changing Back to the Default Screen Shot File Save Location in Mac OS X
If you decide having screencaptures automatically saved to another location on the Mac is no longer what you’d like to do, you can always change the saved screenshot location back to the OS X default setting simply by specifying the desktop again in the aforementioned defaults command sequence. The default save location would thus be the following:
defaults write com.apple.screencapture location ~/Desktop/
Again, you’d need to kill SystemUIServer for changes to take effect.
You can again verify the change has been set back to the default by hitting Command+Shift+3 to capture the screen as a file in OS X, and look on the active user accounts desktop to find the screen shot file.
For many users, maintaining the Desktop as the default location of the screen shot files to generate is perfectly fine, this trick is really intended for individuals who use Command+Shift+3 for screen captures often and find the desktop file generation to be a distraction or otherwise difficult to manage. Users may also find useful to change the file name of generated screen shots as well as the image file type that is used, both of which can be widely customized to accommodate preferences.
This command works in all versions of Mac OS X.
Thank you for this, my permissions got whacked after an Adobe Flash update and I had to reset to my specified folder.
One trick I do that others might use, is I make an alias of the folder containing my screenshots, and then I rename the aliased folder something simple like “123”.
Now when I want to get at my folder full of screenshots, I type command-space bar (for Spotlight) and then “123” (without the quote marks) and return, and you are right there with the folder.
(Same thing for the default download folder – saves a lot of mousing around).
Are you sure this statement is necessary?
It seems like it is saving in the new location, and I didn’t just issue that.
Thanks for this! One additional step I like doing is dragging my newly created Screenshots folder from Finder onto the Dock, so that you can quickly find the file and drag it into your application of choice for sharing.
It’s simple and works perfectly!
Do you know if it is possible to set the new folder in other hard drive. I use a macbook with two hard disks, one SSD with the OSX and the Apps and one HDD ( changed the DvD ) for storage. When I set the new location on the SSD works great but if I try to set it on the HDD, the system reverts to desktop. I work a lot with screenshots and also it would be great for me being able to upload them directly to my OneDrive folder (located on the HDD)
Thank you very much
Use this code if oyu wont to change location to another volume (partition)
defaults write com.apple.screencapture location ~/volumes/HardDisk/Website/images/
Thank you, it worked perfectly well! :)
I’ve got a question – I successfully activated this functionality where all screen shots are stored in another folder. However my “temporary screenshot” functionality is disabled now – this is when you press CMD+FN+SHIFT+4 (normally, if you cmd+V you could paste that screen shot in another window).
Can someone help me to get this functionality back?
Thanx a lot mate…simple and clear instructions..
Dude, you rock my OCD brain! Thanks.
Do not use sudo! This will not work if you are root. Otherwise, works fine.
I looked up a post from 2014-06-15 and their method didn’t work on Mac OS 10.11.4, but this one did and it was posted on 2011-01-26! Strange but I not complaining!
We update our posts to work in modern versions of OS X, it will absolutely work now in OS X El Capitan and beyond!
running capitain 10.11.5 on a new machine but none of these worked for me — saving to clipboard every time. my other machines don’t seem to be affected.
found the problem … went to my dropbox and unticked share screenshots to dropbox in the dropbox preferences import screen.
working as it should now.
a point on the command lines…
make sure the directory you want them in exists first
then do your command line eg
write com.apple.screencapture location ~/Pictures/Screenshots
and then the
Thanks a lot for tip
just switched to OS X, and this was a huge help. Thanks!
Thanks! Worked perfectly. Enjoying my clutter free desktop!
worked on el capitan. thanks man
Wow, hundreds of lines of comments, rigamarole…yet no one asks why Apple couldn’t just provide a System Preferences interface to allow you to choose where to put Screenshots?
Oh, I know, because we should ALL work exactly as Apple thinks we should and if you disagree, you are the problem.
This article explains exactly how to change where screen shots are placed, you can select any directory you want for the screen shot file.
CHEERS. Works like a charm. Thought this was never possible. :D
Yay, you rock! Worked like a charm :-)
Thank you so much!!… It was so easy!… Thanks! :)
Thank you so so much! Worked easily and very simple. THANK YOU.
Directions worked perfectly. I love this site – so helpful!
Best One !
Thanks. Worked great for Yosemite.
This works really well for cmd + shift + 3 but where do the screenshots go for the shift + cmd + ctrl + 4?
They go to the clipboard if you use Control as well, otherwise they go to the desktop or the location you specified with this command
On Yosemite 10.10.2
It worked BUT NOT when the save folder had a space in its name
but did work when the save folder was called
You can use spaces in the screen shot destination folder. You’re not escaping the space in the destination folder name, escape it with a \ or put it in quotes. This is kind of geeky but basic unix knowledge, most people wouldn’t know it of course unless you live in the linux building like I once did.
VERY GOOD ADVICE-WORKS LIKE A CHARM
Can anyone confirm this works in OS X 10.10 Yosemite as well?
OS X Yosemite is Mac OS X, so yes can confirm this works in OS X Yosemite to change where screen shots are saved
Not working on osx 10.9.5, I get this message:
Rep argument is not a dictionary
Defaults have not been changed
Ah… the folder on my Desktop is an alias to a shared folder I use for moving files among my several users (set up for testing). Apparently, you cannot specify an alias to a shared folder as the default screen capture location.
Hmm… not working in 10.9.5. I entered the commands in Terminal. No error message. Screen shots still showing up on Desktop.
defaults write com.apple.screencapture location /Users/gina/Desktop/Swapping\ Files;killall SystemUIServer
Tried quitting Terminal. No change. Tried logging out and back in. No change.
it says “-bash: defaults: command not found” Please Help ASAP?!?!?!
I take a lot of screenshots. This tip works great on OS X 10.9.3.
This worked like a charm on OS X 10.9.3. Thanks for writing this.
Awesome tip, works a charm – THANKS!
great tip, thx!
nice document, thank you.
BTW, running Mavericks.
Not working for me. The terminal will not save the code. Any code. I paste it in. Close the terminal window, open it back up. GONE!
Read the instructions. You paste the code into the terminal, press ENTER to execute the command. It’s not supposed to be saved in the Terminal for the changes to take effect, it just executes once.
It’s all in the details! Thanks! Working now!
Thank you, I hate cleaning up Desktop, changing path works better :)
Thank you! My desktop is a much happier place now. :)
Works great in Mac OS X Version 10.6.8
Sorry I don’t know if that’s Mountain Lion or Snow Leopard or Jungle Cat or whatever the fun name is ;)
I have Mavericks, and it isn’t working; any suggestions (I know that my path is correct because I actually dragged the file into terminal and it automatically added the path)? Also, should I have the “~” before the path or not (its confusing the way it’s written in the instructions.
Just got it working for some reason; I tried it without the “~” before the path and it finally worked. Thanks for the article!
We’re glad you got it working in Mavericks!
It works!!!!!!! thanks !!!!!
Perfect!! Thanks for the help, just made my lesson planning even faster!!!
I noticed for Mountain Lion at least, you cannot specify the full path to a directory in your home folder (for example /Users/admin/Downloads/). It will not work. I tried killall SystemUIServer, killall Finder, log out and back in, still nothing. You must use the “~” syntax in order for it to work. Then killall SystemUIServer and it worked perfectly. Just a little FYI.
Works very well. Tip: If you want to have the location in a folder on your desktop in Mt. Lion, put another / after the folder name to indicate you want it in a folder. E.g. ~/desktop/screenshots/
Brilliant!! Thanks a lot! :-)
Works like a charm! Thanks!
Thank you, this was great!
Thanks for posting this.
As of 10.8 , there is no need to restart the service.This applies automatically without service restart.
Awesome! If you’re having trouble with a space in the file path, just leave it blank and drag your folder to the terminal window and OS X auto enters the path for you. Gotta love apple, Thanks for the Terminal codes here!
Dragging the folder into the Terminal window was very helpful trick. Wanted to copy screenshots to an NAS, and couldn’t get the pathname correct. By copying the folder to the Terminal window, it displayed the correct path to add into this syntax.
Now screenshots are copying directly to the NAS and accessible from any device that has access to the NAS.
[…] is to create a new folder in /Pictures/ or ~/Documents/ and then set that to the new default screen shot save location with a defaults write command: defaults write com.apple.screencapture location […]
Works like a charm! Thanks!
Awesome, thanks :)
What a time saver not having to clean up my desktop all the time ^^
Thanks. This helps a lot.
Easy to follow even for a n00b.
Done in under 10 seconds.
Tested & works.
Thanks it helped a lot! Was getting annoyed about missed up desktop!
Another way is to use Onyx to do this… It has this feature in the Parameters section under the General tab and you can also change the format from PNG to JPG or a few other options… Just thought I’d mention it…
Yes, it works, but don’t put in that stupid tilde!
The tilde represents the location of your user folder that you’re logged in with.
is the same as:
Fantastic, exactly what I was looking for!
Here’s what I did, including cleanup:
defaults write com.apple.screencapture location ~/Documents/screenshots
mv ~/Desktop/Screen\ shot* ~/Documents/screenshots/
worked for me too. Yosemite
If you’re temped to run sudo, don’t. Just run defaults write etc.
This is great btw. Thanks for the tip.
Just what I needed. Thanks!
[…] than changing file names, you can also change where screen shots save to and change file type to a format other than the PNG […]
I have OSX lion, and it also worked great for me too! I’m stoked! Here’s my path with its own screen shots folder. I named the folder: Screen_Shots.
defaults write com.apple.screencapture location ~/Pictures/Screen_Shots/
Thanks for the tip, worked great! It was so annoying having them scattered all over the desktop.
I can take snapshots but they don’t appear on the desktop so I wanted to try to change the location so that I could find my snapshots in the future but I can’t find the program Terminal even though I know I had it. Also, my search tool or whatever doesn’t work either. I have the new Macbook with Snow Leopard (I think it is).
I have OSX Lion… and worked great for me. Have been wondering how to do this for a while now. Thanks! :)
ok. copy pasting a comment i found in another forum. to make it work you need to follow this. instructions in the blog above are not enough…
“You have to change the username (in caps below) and then the following needs to be consistent with the directory you want to use for the screen shots. Your user name is the user name of your computer which can be found by opening finder, click on “Macintosh HD” in the top left, then users and your user name should be the top folder. If you havent named it and you have an air, for example, it will just say “air”
defaults write com.apple.screencapture location /Users/YOUR USER NAME GOES HERE/Desktop/printscreen/”
This method worked for me. Don’t forget to have the changes take effect, you then must type:
This worked for me! Thanks Ouriel and Mia!
does not work on OSX lion. someone managed?
I’m doing it and it doesn’t work! For some reason the computer is TAKING the shots and NOT saving them on the desktop and I don’t know WHERE it’s saving them or how to find them… very annoying… then I did all this and it doesn’t work for some reason. I’d like to show you snapshots of what I’m doing, but for obvious reasons can’t, haha…
I would start by locating where the screenshots are being recorded. Do so by entering
defaults read com.apple.screencapture location
Even if the post doesn’t seem to be working for you this should allow you to find your screenshots.
Very convenient! I added a ‘Screenshots’ folder to the path so that it reads
defaults write com.apple.screencapture location ~/Pictures/Screenshots/
did this create a new file named screen shots or did it have to exist already?
This is really great. Cluttering up the Desktop with Screen Shots is really disruptive so changing the location is very helpful. Thank you so much for this tip.
I just tried it and it worked… But only after I logged out and back in again. Your mileage may vary.
Works in Mountain Lion as well. Noticed I had to close terminal after the kill command for the change to apply. Either that or there was a few minutes time delay.
I always wondered if there was a way to do this
Best of all, this works to change the screen shot save location in ALL versions of OS X… even in Yosemite it works!
So does El Capitan!
Doesn’t work on my Yosemite, still saves the file to the desktop.
Yes this command works to change the screen shot saving location in OS X El Capitan and OS X Yosemite
Try it again and cut & paste the commands to the terminal window.
This works in Yosemite and El Capitan, I have done it in both.
Check Manny C’s post below. You may have to log out and back in, but it does work. :)