Archive for October, 2008

Snipr / Snurl / Snipurl

Wednesday, October 29th, 2008

In the wake of our release of TextExpander 2.5, David Chartier, Assistant Editor at Ars Technica, requested support for snipr.com. I was surprised to find that Snipr, Snurl, and Snipurl are all the same service. They will require registration as of December 31, 2008. Given that, I wrote a snippet which supports using these services as a registered user.

Here’s what to do to install the new snippet:

  1. Download Snipr.textexpander.zip
  2. If Safari doesn’t automatically unzip it, then double-click to unzip it
  3. Launch System Preferences and select TextExpander
  4. Under the + menu, select Add Group from File…
  5. Check the box labeled Import as editable local copy:
    ImportEditable.png 
  6. Locate the Snipr.textexpander file and press Open
  7. Click the disclosure triangle to the left of the new Snipr group
  8. Select the /snipr snippet
  9. Change mySnipUserID and mySnipAPI at the top to your own values (you can find the API value in your Snipr preferences)

Here’s how to use the new snippet:

  1. Copy a URL
  2. Click where you’d like the shortened URL to appear
  3. Type /snipr
  4. Voilà! The shortened URL will appear.

Happy Snipr-ing (or is it Snurl-ing or Snipurl-ing?)…

Enjoy!

TextExpander: Date and Time Math

Tuesday, October 28th, 2008

Let’s say it’s your job to remind people to do something. Maybe you are the accounts receivable person, and you regularly need to remind people to pay you in 15 days. If you use TextExpander, your days of looking at the calendar and calculating that date are over!

We added date and time math capability to TextExpander 2.5. Now you can create a snippet that automatically inserts a date that is 15 days from today. Here’s how:

1) Create a new snippet by clicking on the plus (+) sign under your list of snippets on the left in the TextExpander Preference pane.

2) Click on the plus (+) sign under the snippet content pane on the right. Choose Date/Time Math > Add Day(s).

3) TextExpander inserts %@+1D into your snippet content pane. Change “1D” to “15D”.

4) Insert the date format you wish to appear, again using the plus (+) sign menu on the right. For example, if you want the date to appear in formatted “October 29, 2008″, insert the following:
 - Choose Date > Month > January. Add a space.
 - Choose Date > Day > 1. Add a comma and space.
 - Choose Date > Year > 2001  

5) When you are done, the snippet content should be: 
%@+15D%B %e, %Y

6) Give your snippet an abbreviation, such as “d15″ or “payupnow”.

TextExpander 2.5 is a free upgrade to registered users of TextExpander 1.x and earlier. You can download it here. Besides the date/time math, we’ve also added some new built-in snippet groups: Internet Productivity (which includes the AppleScripts we’ve posted here for URL shortening) and Symbols (for those who need to use symbols like copyright, trademark, euro, yen, infinity, etc.).

Get Tr.im With TextExpander

Monday, October 20th, 2008

We’ve posted AppleScript TextExpander snippets that generate shortened URLs with bit.ly and TinyURL. A few weeks ago on Twitter, TJ asked if we couldn’t do one for the shortening service tr.im. I thought I would use TJ’s challenge as a personal one to push the limits of my limited geekiness and figure it out myself. I got as far as looking at the tr.im API, and thought “I’m not going to be able to figure this out without help.” Then I got busy with stuff and promptly forgot about it.

A few days ago, I saw this post and tried the script the author offers. It didn’t work for me, so I referred to my colleague Greg (aka he who knows all about TextExpander). He told me that:

The author is using a non-standard Unix tool (wget), i.e. not one which is installed with stock Mac OS X. It was fairly easy to replace his use of wget with curl, and so I’ve done.

I definitely would have never figured that out myself. You can download Greg’s revised AppleScript snippet and try it out. The zipped file contains a TextExpander snippet group (of one snippet) that you can add to your library by choosing “Add Group From File…” from the Add menu.

And you’re welcome, TJ. ;-)

Save Time Typing with TextExpander

Thursday, October 2nd, 2008

I know I do…

GregTE.png

(and I’ve probably reset this a few times when testing)

How about you?

How much time have you saved with TextExpander?