This is my absolute favorite. Sharing screen captures via the internet is a hassle. I wrote this to make sharing screenshots across chat a one step process using DropBox. (I have subsequently come across apps and utilities that do this, but I think this is perfect, at least for me.)
It starts the interactive screenshot utility (same as ⌘+⇧+4), saves it your Dropbox's public folder, copies the URL to your clipboard and opens it in your browser.
I run it via LaunchBar, but you could run it from the shell or bind it to a keyboard shortcut to make it as easy as ⌘+⇧+5.
You could add something random to the filename if you are worried about privacy.
I used to have it scp
the screenshot file to my webserver before I switched to Dropbox. You could send the file wherever it would be useful to you. You could even put it in your ~/Sites
directory to use it on your local network.
If you want sign up for dropbox, you can use my referral link which will give us both bonus storage. =)
#!/bin/sh
# Integrates Mac OS X's screenshot utility with DropBox for easy sharing.
# - Starts the interactive take-screenshot function, saves it to your public
# Dropbox (if you didn't cancel it) where it will be uploaded automatically.
# Copies the public URL to your clipboard and opens your browser to it.
## Config
dropbox_id="112358132134" ## this is fibonacci's dropbox id
dropbox_public_folder="$HOME/dropbox/Public/screenshots"
upload_delay_in_second=1.5
## Derivative Variables
filename=$(date '+%F__%H-%M-%S.png')
save_to="$dropbox_public_folder/$filename"
url="http://dl.dropbox.com/u/$dropbox_id/screenshots/$filename"
## start interactive screen capture
screencapture -i "$save_to"
## if the screenshot actually saved to a file (user didn't cancel by pressing escape)
if [[ -e "$save_to" ]]; then
## echo some output in case you run this in a shell
echo "Saved screenshot to:" "$save_to"
## copy url to the clipboard
echo "$url" | pbcopy
## wait for Dropbox to upload your screenshot, then open in your browser
sleep $upload_delay_in_second
## The `-g` flag means it won't bring your browser to the foreground, which
## feels less like getting interrupted.
open -g "$url"
fi
open
for everything: URLs, images, documents. I use it everyday. – olt Jul 6 '10 at 14:48open .
opens it Finder. It's useful if you want to do something graphical. – ShreevatsaR Jul 26 '10 at 4:40