Sparrow, the sleek new email client for Mac OS X, was updated yesterday to improve speed, fix some minor bugs and add some limited AppleScript support. While the changes might not be apparent to many Sparrow users, they were apparently an inspiration to Don Southard, who immediately figured out a way to use the AppleScript support with OmniFocus.
Southard's quick work allows him to delegate an OmniFocus task by sending an email with details about the task to another person via Sparrow. The script is saved and placed into the
~/Library/Scripts/Applications/OmniFocus folder, and then a script icon named "Send to Sparrow" is placed on the OmniFocus toolbar at a place of your choosing. To delegate a task, you select a task, then click the icon to send it to Sparrow.
The task's name, context and note fields are included in the email, with Delegated Task as the subject line. As Southard notes, you can easily rearrange the order of the task fields within the script.
It's a simple but effective AppleScript, and demonstrates the power of Apple's venerable scripting language in integration of different apps. As Sparrow evolves from the current 1.0.1 version, it would be nice to see additional AppleScript support built in so that people like Don Southard can do even more fun and useful things with the app.