Skip to content

Instantly share code, notes, and snippets.

@jonahoffline
Created September 1, 2014 19:39
Show Gist options
  • Save jonahoffline/3ee2a760f5e2f812f79f to your computer and use it in GitHub Desktop.
Save jonahoffline/3ee2a760f5e2f812f79f to your computer and use it in GitHub Desktop.
Save screenshots to iCloud Folder (OSX)

Change your default screenshots location (desktop)

defaults write com.apple.screencapture location folder_name_here

Example

Save screenshots to the 'Screenshots' folder (inside iCloud Drive)

defaults write com.apple.screencapture location ~/Library/Mobile\ Documents/com~apple~CloudDocs/Screenshots

@dragonairiel
Copy link

Using 10.11.6 (15G31) El Cap and it didn't work for me :( It says "Your screen shot can't be saved. You don't have permission to save files in the location where screen shots are stored." If it worked before, something has changed in the OS that now prevents it.

@dalex7777
Copy link

I am on El Cap also 10.11.6 (15G1004) and while I was able to issue the command, my new screenshot did not save.

@kurisu87
Copy link

kurisu87 commented Jun 9, 2017

Works totally fine on OSX Serria without any issue.

@sirkkalap
Copy link

Worked fine for me. I did make the folder before trying it tho. So a
mkdir -p ~/Library/Mobile\ Documents/com~apple~CloudDocs/Screenshots might be needed on first run.

For the permissions maybe
chmod u+rw ~/Library/Mobile\ Documents/com~apple~CloudDocs/Screenshots helps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment