Make long URLs short with tr.im.it

November 1, 2008, 12:34 pm · Filed under: Twitter, Widgets

The best Dashboard widgets scratch an itch. I’m a big fan of tr.im for URL shortening, but even their excellent bookmarklet wasn’t quite convenient enough for me. Lucky for me that a) tr.im publish a public API, and b) I know how to build widgets.

andrew.hedges.name



I am a web developer, living and working in New Zealand. I’m into my family, photography and frisbee sports.

Programs must be written for people to read, and only incidentally for machines to execute.
Abelson and Sussman


Meta Me

LinkedIn · Ma.gnolia · Zooomr · Twitter


Topics

Apple · Business · Coda · Design · Google · JavaScript · jQuery · Life · Marketing · New Mexico · New Zealand · PHP · Politics · Ruby on Rails · Twitter · Usability · Web Development · Widgets


Archives


Most Popular

The first 48 hours of PHP Function Reference, by the numbers · Make long URLs short with tr.im.it · On the value of Twitter · Coda 1.5 is the bee’s knees · Series on hold: What a surprise… · Radiant JavaScript Singletons Freelance Down Under · innerHTML versus the DOM: Can’t we all just get along? · V8: neither all that nor a bag of chips · Stack Overflow: I’m sold! · Introducing jQuery Simple Templates


Most Recent

Make long URLs short with tr.im.it · On the value of Twitter · Ego-surfing, 2001 style! · Stack Overflow: I’m sold! · V8: neither all that nor a bag of chips · Playing to a browser’s strengths: Simple Templates 1.1 · Introducing jQuery Simple Templates · Coda 1.5 is the bee’s knees · Numerical array sorting in JavaScript · Using Coda’s Terminal Tab Locally


Recent Reads

New elements in HTML 5 · Untitled · Comparison of layout engines (HTML 5) · (X)HTML5 Validator · Yes, You Can Use HTML 5 · HTML 5 Reference · The Miller Device · The drawings of Leonardo da Vinci · Giant Robot · Why You Should (Almost) Never Rewrite Your Software

See more @ Ma.gnolia


Friends

80/20 · 90 Seven Design · Alyson Hurt · Brian Warren · Daniel Lyons · Daniel Schwartz · David Hedges · Joshua Sallach · Kelly Green · Mark Bixby · Method Arts · Morgan Pyne · Piers Harding · Rob Pongsajapan · Ryan Park · seven-gen · Vaughan Rowsell · Vincent ThomĂ© · Voom Studio


Subscribe

Atom · RSS 2.0


I’ve hosted this website with pair Networks since 1997. They rock.


Reload Amazon Adverts…

For a while, I ran my own URL shortening service. I had to shut it down after spammers used it to advertise all manner of unmentionable content. URL shortening services (others include qurl.net, tinyurl.com and is.gd) — as others have noted — have their shortcomings (har har), but are really good for working around the following common problems:

  1. Sending long links in emails - many email clients are steaming piles that break long URLs into multiple lines, rendering them unclickable
  2. Posting links to Twitter or SMS messages - both of these services limit you to around 140 characters; a long URL can take up most of that limit

tr.im.it interface

Yesterday, I released tr.im.it, a widget for Mac OS X’s Dashboard that makes it super-duper simple to create short URLs. Here’s how it works:

Get tr.im.it

This is the simplest widget I’ve built in a long time. That’s a good thing. I turned it around in a 24 hour span that also included taking the kids trick-or-treating and several hours of freelance work. I intentionally kept the interface simple. Heck, I didn’t even include a link back to my own site! My hope is the KISS principle will satisfy the 80% of users who just want a quick way to shorten URLs.

This is the power of APIs, I think, especially ones built on solid REST principles. The hardest part of building this thing was figuring out the AppleScript to grab the URL from Safari. Even that wasn’t hard.

In any case, I’m happy to have a widget that gives me a more convenient way to shorten URLs. Find out more about tr.im.it on my widgets page.

Get tr.im.it

Fin