DealsOnTheWeb Daily Deal: Overstock: Get 15% Cash Back when You Use PayPal + a Chance to win $5,000
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
Recent Headlines - Updated Saturday, November 29th, 2008
- Sat., 9:00 PM
- Podcast - Apple Weekly Report #135: Apple Lawsuits, Banned iPhone Ad, Green MacBook Ad
- Fri., 12:45 PM
- Podcast - Mac Geek Gab #178: Batch Permission Changes, Encrypting Follow-up, Re-Enabling AirPort, and GigE speeds
- Thu., 1:30 PM
- iPO Review - Scosche kickBACK iPhone case
- 7:00 AM
- Happy Thanksgiving from TMO!
- Wed., 6:00 PM
- TMO Appearances - Nancy Gravley Joins MacJury Gift Guide
- 5:15 PM
- TMO Visits The Bay, a Premium Apple Reseller in New Zealand
- 3:25 PM
- iPO Oh the Games You'll Play - iPhone: The Wii of Handheld Gaming Devices?
- 2:15 PM
- Sonnet Releases Simply Fast FireWire 800 to 400 Adapter
- 1:10 PM
- Mac Gaming News - Disney Plans 1st Annual PotC Online Thanksgiving Event
- 12:05 PM
- iPodObserver - UK Shuts Down iPhone 3G Ad
- 11:15 AM
- TMO Appearances - Jeff Gamet on MacJury Gift Guide
- 10:30 AM
- TMO Contest - TMO Announces Macworld Expo Pass Winners
- 9:50 AM
- PhotoCopy 1.1 Adds iPhoto Event Support
- 9:15 AM
- Acclivity Buys MYOB US
- 8:30 AM
- Review - Bento 2 Holiday Pack
- 7:50 AM
- Microsoft Offers Black Friday Office Discount
- 7:30 AM
- iPO Quick Tip - iPhone: Google Street View
The Mac Observer Reader Specials
- Download Typestyler, still the Ultimate Styling Tool for Internet, Print and Video Graphics. Works great in Classic with a Native OS X Version on the way. Free Tryout: www.typestyler.com
New iMac 800Mhz Memory 4GB $54. New MacBook & MacBook Pro DDR3 PC8500 4GB Kit $116. MacBook/MacBook Pro / MacMini / iMac Intel Core2 DUO DDR2 667Mhz 4GB Kit $58, 3GB Kit $44, 2GB Kit $30. Click to Maximize your Macs...
Mac observers can now play Party Poker for Mac as well as Mac casino games by going to MacPokerOnline.com.
RamJet Memory: Mac Pro FB-DIMMs: 2Gig kit $95, 4Gig Kit $179, 8Gig Kit $355! MacBook 2Gig Kit $78, 4Gig Kit $149! Click hereFor the latest Apple products use Ciao a comparison website to find laptops like MacBook Air. Then find the best prices on MP3 players and use our comparison tool to evaluate cell phones.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.




