Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: Create a tri.im URL shortening Service' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Create a tri.im URL shortening Service
Authored by: floz on Feb 10, '11 06:03:22AM
My first contribution, yay :-)

Here's the AppleScript need for using this hint with Google's URL Shortener service, goo.gl:

on run {input, parameters}
	set shorturl to do shell script "/usr/bin/curl -s -d'&url=" & input & "' http://goo.gl/api/url | sed -e 's/{\"short_url\":\"//' -e 's/\",\"added_to_history\":false}/\\n/'"
	return shorturl
end run


[ Reply to This | # ]