tell application "Safari"
set theUrl to the URL of front document
end tell
set the clipboard to (do shell script "curl 'http://is.gd/api.php?longurl=" & theUrl & "'")
set theCmd to "/usr/local/bin/growlnotify -m " & (the clipboard) & " URL Shortened -a Safari"
do shell script (theCmd)