Instant TinyURLs from TextExpander

· by · Tips

TinyURL is really great because it shrinks long Web addresses down to a much smaller and more manageable size, but it usually takes several steps to get those compressed URLs. With a little help from AppleScript and TextExpander, however, you can cut that process down to just a couple of steps.


The TinyURL Web site.

First, youill need TextExpander 2. This app expands abbreviations that you define into words or text blocks, and it can also run AppleScripts. It costs US$29.95 and you can download it from the SmileOnMyMac Web site.

Youill also need David Smalleyis cool AppleScript that converts any URL you copy into a TinyURL. If you donit feel comfortable mucking around with AppleScripts, SmileOnMyMac has a version you can download and import directly into TextExpander.

Once you have all of the pieces, hereis what to do -- assuming you are using SmileOnMyMacis pre-built script:

  • Double-click the file you downloaded from the SmileOnMyMac Web site. It should automatically expand and leave you with a file named tinyurl.textexpander.

  • Open TextExpanderis preferences.
  • Launch TextExpander. You can either choose TextExpander Preferences from the TextExpander menu bar item, or launch System Preferences and click on the TextExpander Preference Pane icon.

  • Adding the AppleScript to your snippets.
  • Now click the plus button in the lower left corner of the Preference Pane and choose Add Group from File.
  • Navigate to and select the tinyurl.textexpander.

Hereis how to use your new TextExpander script:

  • Select and copy a URL you want converted into a TinyURL.
  • Place your cursor where you want the TinyURL to appear.
  • Type tinyurl -- which is the pre-assigned abbreviation for the AppleScript that generates the TinyURL for you.
  • The TinyURL version of the Web address will automatically appear at your cursor insert point.

I find this little AppleScript to be stunningly useful and a great time saver, especially when the number of characters or how much you can type is strictly limited. Yes, Iim thinking Twitter, but you can use this trick in other applications, too.

[Thanks to Jean at SmileOnMyMac for turning me on to this great AppleScript.]

<!--#include virtual="/includes/newsite/series/quicktip.shtml"-->
Jeff Gamet

Jeff Gamet

Jeff is the Mac Observer's Managing Editor, and co-host of the Apple Context Machine podcast. He is the author of "The Designer's Guide to Mac OS X" from Peachpit Press, and writes for several design-related publications. Jeff has presented at events such as Macworld Expo, the RSA Conference, and the Mac Computer Expo. In all his spare time, he also co-hosts the We Have Communicators podcast, and makes guest appearances on several other podcasts, too. Jeff dreams in HD.

Sign Up for the Newsletter

Enter a valid email address

Join the TMO Express Daily Newsletter to get the latest Mac headlines in your e-mail every weekday.

Adding to list…

No Comments

Add your comment

Commenting is not available in this channel entry.