Skip to content

Instantly share code, notes, and snippets.

@andytlr
Created June 23, 2014 02:02
Show Gist options
  • Save andytlr/690216545cb0f374620f to your computer and use it in GitHub Desktop.
Save andytlr/690216545cb0f374620f to your computer and use it in GitHub Desktop.
Non-public Dropbox folder screenshot
dropboxuser=21267 # Replace with your ID
directoryname=shots
filename=shot_`date '+%Y-%m-%d_%H-%M-%S'`.png
path=~/Dropbox/$directoryname/
mkdir -p $path
screencapture -o -i $path$filename
open --reveal $path$filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment