Simplicity Is Bliss

“Simplicity is the result of hard work, complexity the one of no work at all.”- Taking it easy in Business, Personal Productivity and Technology. 
« Back to blog

Automatically add Tasks delegated by Email to Things with Applescript

Things-Icon

I've recently published an Applescript that, with some help of MailTags automatically adds emails by which you delegated tasks to OmniFocus. Since only minimal adjustments in the code were required to make it work for Things as well, I've modified the script accordingly. Please refer to the original post for more details on functionality and background information since I'll keep it short in this post.

Script Functionality

  1. Based on a specific MailTag in Mail.app you can invoke a outbox rule which will start the script (I use "@Waiting" in MailTags as well and simply applied it to those emails I write which need to be tracked for response)
  2. The script adds a task with the title "<recipient> to come back re <subject>". The text in the middle can be configured in the script and if you have more than one recipient (CC and BCC recipients are ignores) the script will take the first recipient and add "and x more" automatically.
  3. The task includes a link back to the original message in the notes section (and the actual mail body, if desired), is automatically assigned with a "@waiting" tag (configurable) and placed into Things' inbox
  4. If you have Growl installed and running, the script will give visual feedback once the task has been created

Installation of the script

  1. You will need MailTags from Indev to later built the proper Mail.app outbox rule
  2. Download the script and copy it into your standard script directory, e.g. ~/Users/<your username>/Library/Scripts/
  3. Modify the script configuration based on your needs and setup
  4. Create a outbox rule in Mail.App that invokes the script if specific conditions, i.e. MailTags Keyword of the message is "@Waiting", are met

Customising the key parameters

Inside the script you can and very likely should change some configuration properties to match your requirements and setup.

  • property mailBody : true - You should change this setting to 'false' if you do not want the entire body text of the email to be pasted into the Things task's note section.
  • property MidFix : "to come back re" - Change this text to whatever you like to see in the task title between the email recipient's name and the email's subject.
  • property myWFTag : "@waiting" - This variable needs to exactly match the name of the tag in Things that you'd like to use for "Waiting For" items, i.e. "@waiting".

Creating the outbox rule in Mail.app

Next you need to create a outbox rule in Mail.app that looks similar to the one below. Again MailTags will be required to perform this action.

Mail.App Rule to invoke Script based on a certain MailTag

With this last step you should be up and running. Enjoy and please let me know how this script works for you.

Loading mentions Retweet

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter