I wanted an easy way to shorten my URLs through one of the URL-shorteners out there. I liked bit.ly, because it’s nice and short, has an easy to navigate web-interface (without a mouse) and I can use its magic with my terminal (cURL).
I also very much like TextExpander and after googling a bit, I ofcourse found an Applescript for TextExpander and Bit.ly. That link also shows how to set it up in TextExpander, very handy!
The script does not however use your actual bit.ly account so you can keep track of the URLs you shorten. I tweaked it and made adjustments and it took hours and ofcourse, then I find this which is almost exactly what I had, except with URL-encoding (yummy).
The only problem with that one was that I couldn’t get it to have the URLs show up in my recent history. The ‘history=1’ didn’t seem to work.
I tweaked some more and came up with something that completely does what I want. I use OmniWeb so I replaced the
with
set PageURL to address of active tab of browser 1
end tell
If you use safari, use
set PageURL to URL of front document
end tell


















Subscribe