Add URL Shortening To Quicksilver

Mac only: You've got no shortage of ways to quickly shorten URLs, like bookmarklets or text replacement apps, but most require mouse usage somewhere — and, as most Quicksilver addicts know, nothing is faster than just hitting a few keys.

In hunting for a Quicksilver-shortening method, I stumbled onto a few articles out there on how to use Quicksilver to shorten URLs, but I couldn't find one that worked or was quick enough for me. So, with the help of Jonathan Berger at LIVEdigitally and Andrew Hedges over on Stack Overflow, I was able to cobble together some Applescripts for use inside Automator to make the fastest shortening ever seen. Just download the app for your browser, rename it to whatever you want and save it somewhere out of the way. Whenever you need to shorten a URL, just pop up Quicksilver, type the name of the app, hit enter and presto! The Automator icon will show in the dock for a second or two, and when it disappears, you'll have the shortened URL on the clipboard, ready to be pasted into Twitter or wherever you need it.

Unfortunately, each application is browser-specific — meaning you'll have to trigger a different app if you're using Safari than if you're using Firefox (this is only really a problem for those that regularly use multiple browsers — you'll have to differentiate between shortening apps in Quicksilver by giving them different names). And, even more unfortunately, I wasn't able to make one for Chrome — but almost every other browser for Mac is there. The Opera, OmniWeb, and Flock ones are untested, so let me know if those don't work. I tried out the Safari, Firefox and Camino apps and they appear to be in working order. I've also added the original Safari-based workflow for anyone to tweak as they please (the only difference between it and the others is the first Applescript — for which the others are available at the second link I posted). If you come up with good ones, share them in the comments! Also, if you are an Applescript expert and know a command to get the frontmost URL from Chrome, let me know and I'll add a Chrome version (with credit to you, of course). They are available here:


    *** Hi, for the editors:
    - I've only tested the action below with Safari and Opera.
    - Your Opera code works for me.
    - The script contains notes.
    - When choosing Safari, I get a weird bug where typing in the second pane doubles up certain letters, like t and b, Making it difficult to get the action. Does this happen to you? If so, I could re-work the script. (Change the name?) ***

    Hey, neat actions!

    I was inspired to combine your actions into one Quicksilver action. It's here -

    It works by taking the name of the selected browser in Quicksilver and returning the URL.
    How to use:

    - Open the unzipped script in AppleScript Editor and un-comment the code for your browsers. (I assumed you have Safari.)

    - Save the script in: ~/Library/Application Support/Quicksilver/Actions.

    - Relaunch Quicksilver.

    - Bring up the browser you want in the first pane of Quicksilver, then tab to the second pane and find the Bitly action.

    - Invoke, and Quicksilver will copy the URL to the clipboard and Quicksilver's first pane.

    - Either tab to pane two and find 'Paste with Clipboard' or dismiss Quicksilver and paste as normal. (Although in TextEdit I found that if I pasted with clipboard, the URL was linked.)

    - Enjoy!

    I wrote this because I find Automator a bit slower, and I think it's useful to have all the browsers covered in one action. The action will return an error message in Quicksilver if it doesn't work. Notice the script download link is a Tinyurl. :)

    Cheers, Phil.

    Every script that I've tried, including yours, returns the following line:

    410 Gone

    410 Gone

    It appears to have been disabled, or I've got issues on my end.

      OK, I posted the raw html not expecting it to display only the content. Here it is in it's slightly modified original form:

      (head)(title)410 Gone(/title)(/head)
      (body bgcolor="white")
      (center){h1)410 Gone(/h1){/center)

        I also get the exact same 410 gone as penguirl with every script/service I have tried in automator for Is it possible the api has been changed?

    i've question for you i've a free agent pro really hard drive and it was
    functioning fine but its not operating now i am trying to have my files back from
    it is there any method to do that ?

Join the discussion!

Trending Stories Right Now