get Mails as task into “The Hit List” by falko
11 05 2009At the current stage the all new GTD application “The Hit List” has no direct support for fetching certain emails from Mail.app and make tasks out of them. OmniFocus does it and there is a AppleScript for Things to accomplish this.
I searched the internet a little but didn’t found a script for Mail.app and THL. So I wrote a little mail-to-thl1 for myself:
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
set theMailCount to (count of theMessages)
repeat with counter from 1 to theMailCount
set msg to item counter of theMessages
set theAttachmentCount to (count of mail attachments of msg)
set _title to subject of msg
set _sender to sender of msg
set _messageURL to "message://%3c" & msg's message id & "%3e"
tell application "The Hit List"
tell inbox to set theTask to make new task with properties {title:_title & " from " & _sender & " @email", notes:_messageURL}
end tell
end repeat
end tell
end perform mail action with messages
end using terms from
I use a simple Mail.app rule to execute the AppleScript on the arrival of certain eMail. This script then creates a new task for every Mail in the THL inbox and atteches a link to the mail as note to the task.
Comments : 3 Comments »
Categories : Software
Tags: AppleScript, GTD, Mail.app, OmniFocus, Software, The Hit List, Things, THL











