Last active
August 29, 2015 14:07
-
-
Save thisislawatts/0f8f287f9ececaa82cd4 to your computer and use it in GitHub Desktop.
Grab & Go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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