Skip to content

Instantly share code, notes, and snippets.

@thisislawatts
Last active August 29, 2015 14:07
Show Gist options
  • Save thisislawatts/0f8f287f9ececaa82cd4 to your computer and use it in GitHub Desktop.
Save thisislawatts/0f8f287f9ececaa82cd4 to your computer and use it in GitHub Desktop.
Grab & Go
# Uploads latest screengrabs to S3 Bucket
#
# Requires: s3tools.org & S3 Bucket
function grabgo {
screengrabs_location=$(defaults read com.apple.screencapture location)
file_name=$(ls -t $screengrabs_location | head -n1)
s3cmd put --acl-public --guess-mime-type "$screengrabs_location$file_name" s3://bucketname
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment