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.









Hey Falko, hört sich gut an; ist es das gleihe Skript wie das von Nic fletcher?
http://groups.google.com/group/the-hit-list-users/web/new-thl-task-script
Wie installiere ich das Skript?
Nach den letzten Updates scheint eine Funktion nicht mehr zu funktionieren, nämlich wenn man text auf das Icon zieht, wird daraus kein neuer Task erzeugt; das funktionierte vorher oder mach ich da was verkehrt?
@kronic: Ja, sieht so aus als ob mein Script prinziell das gleiche bzgl. eMail macht wie das von Nic. Seins kann aber offenbar noch mehr.
Bzgl. des Drag&Drop kann ich bestätigen, dass das mit markiertem Text nicht geht. Ich habe das allerdings vorher nie ausprobiert. Kann also nicht sagen, ob das schonmal funktioniert hat.
Was bei mir noch geht ist, eine eMail auf das Dock-Icon ziehen. Dann wird in der Inbox ein neuer Task mit der eMail erzeugt.