The Mac Observer

Skip navigational links

Featured Article: AmTech Reinstates AAPL Buy Rating, Ups Target Price

TMO Quick Tip - Instant TinyURLs from TextExpander

by , 7:30 AM EDT, March 21st, 2008

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, you'll 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.

You'll also need David Smalley's cool AppleScript that converts any URL you copy into a TinyURL. If you don't 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, here's what to do -- assuming you are using SmileOnMyMac's 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 TextExpander's 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.

Here's 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, I'm 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.]


Jeff Gamet is TMO's Morning Editor and Reviews Editor. He lectures, teaches and speaks on Mac OS X and design-related topics, and is the author of The Designer's Guide to Mac OS X from Peachpit Press.

if you have tips or tricks to share, or Mac-related questions you want answered.

Observer Comments

Show: Subjects Only | Full Comments
Comment on this Article

Log in | Register | Having Problems? Reset TMO Cookies & Try Again
Username:   Password:   Log me on automatically each visit   

You are not logged in, and this post will appear as "Guest." Log in with your username and password from the TMO forums. If you do not have a username, you can register here.
Please note that guests are limited to including a maximum of two URLs per post.


Post A Comment
  Subject


  Your Comments



Please enter the word exactly as you see it in the image above. Registered users aren't prompted for this. Having trouble reading the image get a new one.


Recent Headlines - Updated Friday, May 9th, 2008

Fri., 9:05 AM
Apple Settles Power Adapter Suit
8:05 AM
Microsoft Dissolves Yahoo Proxy Board
7:30 AM
TMO Quick Tip - Tracking Application Updates in Dashboard
Thu., 10:40 PM
Apple Ranked as Bottom Electronics Company by Climate Counts
4:55 PM
MW: Improved iMac Graphics Not the Key to Games
4:10 PM
iPodObserver - AT&T's On-Again, Off-Again Wi-Fi Plan for iPhone
3:45 PM
TMO's DealsOnTheWeb.com - MacBook Pro 2.2GHz Core 2 Duo 15-inch Back at $1449 Delivered
2:55 PM
CW: Leopard After Six Months: Solid and Doubts Vanished
1:45 PM
iPodObserver - NBC Experiments with Free TV Shows on iPhone
1:00 PM
Rising Component Costs Hit Notebook Computer Makers
11:35 AM
Mac Gaming News - Macgamestore Releases The Scruffs for Macintosh
11:10 AM
Freeway 5.1 Improves RSS, SVG Support
10:10 AM
Hot Forum Topic - How Valuable is the iPhone's Home Screen?
9:40 AM
Pages Templates 2.0 Bundles 40 Pro Layouts
9:10 AM
plasq Introduces Comic Life Magiq
8:35 AM
iPodObserver - America Movil Lands Latin American iPhone Deal
6:00 AM
iPO Review - Mophie Juice Pack
 

The Mac Observer Reader Specials

Apple Stock Quote

  • AAPL: $183.93. Change Today: -1.13.
  • (Prices delayed up to 20 minutes.)
  • Discuss in our Apple Finance Board

Hot Topics

Top Deals From DealsOnTheWeb