Instant TinyURLs from TextExpander
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.
- 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.
- 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.
![]() Open TextExpander's preferences. |
|---|
![]() Adding the AppleScript to your snippets. |
|---|
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
Comments are currently closed. Please email the author instead.
Recent Headlines - Updated November 21st
- Fri, 7:07 PM
- Games - Soccer Sim Championship Manager 2010 Released for Mac
- 6:47 PM
- Games - EA Publishes Original Monopoly for iPhone
- 6:15 PM
- News - Original Apple I on Ebay for $50K, w/Letter from Steve Jobs
- 6:11 PM
- Games - New iPhone Games: Secret of the Lost Cavern Ep 1, New DJ Nights, More
- 5:47 PM
- Games - Star Trek D-A-C Game Headed to the Mac Next Month
- 4:57 PM
- Product News - TidBITS Releases “Take Control of Syncing Data in Snow Leopard”
- 4:26 PM
- John Martellaro's Blog - Particle Debris (week ending 11/20) Stationery Pads Go Poof
- 2:59 PM
- Free on iTunes - Musée du Louvre, Art Lite, SketchBook Mobile X and More.
- 1:50 PM
- Deal Brothers - Acer P215H bmid 21.5” Widescreen LCD Monitor: $139.99
- 11:24 AM
- TMO Appearances - Jeff Gamet Shares More Holiday Gift Ideas on MacJury
- 10:43 AM
- Product News - Cocktail 4.5 for Leopard Adds QuickLook Cache Clearing
- 10:06 AM
- News - Hack Enables Mac OS X 10.6.2 on Netbooks
The Mac Observer Reader Specials
- TypeStyler For Mac OS X is Now Shipping! Download The Free Fully Functional 60 Day Tryout at www.typestyler.com
OWC: Plug & Play Hardware RAID up to 8.0TB. High Performance, Data Redundant Solutions. FireWire 800, FireWire 400, USB2, or eSATA. Hot Swappable Bays, Data Rates over 200MB/s. Click here
If you're using a Mac, then you've gotta check out Full Tilt Poker for Mac. This Full Tilt Poker bonus code does the unthinkable, it actually rewards!For the latest Apple products use Ciao, a price comparison website, to find laptops like MacBook Air. Then find the best prices on MP3 players and use our comparison tool to evaluate mobile phones like the Apple iPhone.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.




