Trouble changing screenshot location with El Capitan

I have changed the screenshot location before on my Macbook Pro with El Capitan using the Terminal. I just changed the name of my screenshots folder and tried to change the location in Terminal, and it won’t take it.

I get a message saying:


"Rep argument is not a dictionary

Defaults have not been changed."


Does anyone know what I am doing wrong?

Any help is appreciated. Thank you


(I also just changed my screenshots folder on my new Macbook using Shift/Cmd/5 and it worked fine)


MacBook Pro 13″, macOS 10.15

Posted on Jul 8, 2025 11:31 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 9, 2025 4:03 PM

The reason that Terminal command is not working is that it expects an argument to follow the word location


Try it again but drag the path to the screenshot destination after that word.


Example:

defaults write com.apple.screencapture location ~/Desktop


... will restore the default location to the Desktop.

defaults write com.apple.screencapture location ~/Pictures


... will deposit screenshots into your Pictures folder. Etc.


If you don't specify a location the result will be

iMac22:~ john$ defaults write com.apple.screencapture location
2025-07-09 15:03:45.485 defaults[16898:3464638] 
Rep argument is not a dictionary
Defaults have not been changed.
iMac22:~ john$ 
27 replies

Jul 12, 2025 12:35 AM in response to Camelot

To add to my recent reply, here is what i got when I copied and pasted your example from your previous post:


Last login: Fri Jul 11 23:36:36 on ttys000


Mugs-MacBook-Pro-15:~ MacBk15$ defaults write com.apple.screencapture location /Users/MacBk15/Desktop/Desktop\ stuff/Screenshots15


Mugs-MacBook-Pro-15:~ MacBk15$



Hope this helps locate my problem.

Jul 12, 2025 10:56 PM in response to John Galt

Thanks John:

As of today, it started sending the screenshots to my desktop again, instead of the folder I’ve been using for years.

I tried your suggestion just now, to take the space out of the “Desktop Stuff” folder. I tried it both with the backslash “\”. left in and removing it too. Both had the same result. Below is the result:


Mugs-MacBook-Pro-15:~ MacBk15$ defaults write com.apple.screencapture location /Users/MacBk15/Desktop/DesktopStuff/Screenshots15


Mugs-MacBook-Pro-15:~ MacBk15$



And it’s still sending screenshots to my desktop. There must be something I’m putting in that the terminal won’t accept.

Jul 12, 2025 11:14 PM in response to Mug

When I run Camelot’s test now, it says the screenshots are going to my old folder (below), but when I do a screenshot it goes to the Desktop.  




Mugs-MacBook-Pro-15:~ MacBk15$ defaults read com.apple.screencapture


{


    location = "/Users/MacBk15/Desktop/Desktop stuff/Screenshots";


}


Mugs-MacBook-Pro-15:~ MacBk15$ 

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Trouble changing screenshot location with El Capitan

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.