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

@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