Mail to KGTD

Fully integrate your email with Kinkless GTD!

Updated September 21, 2006: Removed link creation to work around a bug in a recent security update.

Have you ever been in your car, and you just want to remind yourself to pick up a certain CD on Amazon because you’re digging on the current tune on the radio?

Do you have web forms that send you tech support requests and you’d like to get those requests in your Kinkless GTD file?

Do you sometimes just want to remind yourself to follow up on an email, but you’d rather have everything in one place, and so you end up filing an email and then creating a task to follow up on it in KGTD, and pretty soon you can’t remember where anything is?

Are you a fanatical user of Mail Act-On and want to fully integrate your Kinkless GTD workflow with it?

If yes, then Mail to KGTD is perfect for you!

Mail to GTD replaces and improves upon my previous “Send Selected Messages to KGTD” script. It allows you to send full messages straight to your Kinkless GTD inbox.

You can run this script on a one-off basis, or drive it via rules which can automatically file your messages into the right context and project in your KGTD file! It also fully supports the excellent program Mail Act-On for all you keyboard junkies out there!

Just like Send to KGTD Advanced, you can send messages using KGTD syntax to set projects and contexts, and it’s fully collect-then-process compliant, respectfully putting all your targeted messages in your inbox, for easy triage and sorting.

It also features Growl integration for messaging, and works wonderfully with Quicksilver, LaunchBar and all your other favorite tools.

And did I mention that it’s free, open-source software that’s fortified with 100% pure Applescript goodness?

Download the script using the links below. Note that this script has a handful of dependencies, including a very necessary scripting addition. These are packaged with the script (hence the large file size) to make installation easier, but be sure to follow the provided documentation.

AttachmentSize
Mail to KGTD v1.13.39 MB

slow

Got it setup, works fine, but just seems to take 3-4 minutes upon activating through Mail Act On for Growl to notify me and for the item to be created in KGTD - is this normal? Thanks

acccollon

Re: Slow

While 3-4 minutes seems excessive, yes, that is normal. The script creates a link to the mail message in Mail.app, and in order to do so, it must execute a spotlight search for that message. This process can take quite a while, depending on your Mac’s general speed at Spotlight searches.

This is why it’s designed to work on multiple messages at once. That way you can let it sit and run while it does its thing.

Man? What's This?

What the heck is up with ALL this sweet code on this blog? I mean this is the coolest productivity stuff that is really helping me get my comuting act together. You are awesome. Thank you. Thank you. Thank you.

Error messages

Hi,

I get frequently the following error messages. do you have an idea what the reason could be?

2006-08-22 08:18:59.103 GrowlHelperApp[285] 2006-08-22 08:18:59 +0200 Send Selected Messages to KGTD: Mail to KGTD Error 8 (NSInternalScriptError) - Priority 0

Regs

Mario

Re: Error messages

Could you please email me via the contact form on this site and let me know what version of Growl you’re running? I’d rather not deal with detailed tech support via the comments section. Thanks!

How I use your wonderful script

Even with the bug that affects rules, this script is wonderful. I really appreciate your work (and look forward to your fix). When I have an incoming email with a task I redirect it to myself with a the appropriate syntax in the subject line. So, for example, when John sent me sample questions to incorporate in the quiz we’re giving next week I redirect the email to myself and in the subject line write “John’s questions > logic @ quiz”. When I check mail and the new email pops up I run the script via quicksilver and the note goes in my inbox. I clean it up, resynch and viola! The notes are in their appropriate spot. Wonderful.

Andre

Weird error message

Hello,

I really (really really) want to use this script. I downloaded the bundle and followed all instructions. Any attempt to run the script, however, fails with the following message:

Send Selected Messages to KGTD: Mail to KGTD Error -1708 (“^[[:space:]]*” doesn’t understand the «event SATIRPLl» message.) - Priority 0

Any help will be greatly appreciated.

Re: Weird error message

Alkis, please revisit the installation instructions. You don’t have the Satimage.osax scripting additions installed.

Installing Mail to kGTD

I love your Send to kGTD Advanced script, and have started using kGTD to Go and the OmniOutliner List Manager lately as well. I am grateful for the effort you have made for all of us, as well as your devotion to combing the kinkless web site and answering questions there. In spite of using these other scripts, I am very much a newbie to this process. Mail Act-On may be in my future, but it’s not on my radar yet.

I’m unable to understand the Mail to kGTD installation instructions. I wish to use QuickSilver to access the script. I am, perhaps wrongly, assuming one highlights a OS X Mail message and activates the script to place a link for the message in the InBox of kGTD. Is this correct?

I’ve placed the Mail to kGTD script in the directory ~/Library/Scripts/Applications/Mail/. I don’t know how to check that the folder is being scanned, per instructions. Where do I proceed from here? I’m not seeing the script when I use QS, and if I highlight a message and use the script from the scripts menu, nothing appears in the kGTD InBox. I fear I need embarrassingly clear detail to understand the process.

Re: Installing Mail to kGTD

You have it right. If you are not running the script from a rule or anything, then yes, you just need to select one or more messages and then activate the script (in any fashion — Quicksilver, the script menu, the script editor… it doesn’t matter).

I’m guessing that you may not have Growl installed and are in fact having an error, but since Growl isn’t available, you never see it. So please check that you’ve followed all the installation instructions regarding Growl and the Satimage scripting addition.

Once you’ve done that, try again, and see if it works. You should at least get an error message if it doesn’t.

If you’re still having trouble, open the script in Script Editor and try running it there. You WILL see any resulting errors or at least what it tries to do. Let me know what those errors are and I can help troubleshoot.

As for your Quicksilver configuration trouble (you can’t see the script in QS), please direct those questions to whatever support groups are available for Quicksilver users. I find that application rather confusing to configure, and am not a regular user. I have found, however, that forcing Quicksilver to rescan its configuration fixes a lot of weirdnesses, so you can always give that a try.

Still struggling

I hope I can stop bothering you quickly, and that someone else benefits from my simplmindedness on this subject.

I’m unsure why I was having trouble. The Growl and Satimage additions were installed, and in fact, used regularly with Send to kGTD Advanced.

It’s working now, at least in part, though I’m unsure what I did to make it work.

Now I highlight a message, and use QuickSilver to send the message to kGTD. It appears to be working, and a Growl message appears showing no errors, saying the message was added with detailed notes. However, when I look in the InBox of kGTD, I see the subject of the message, but nothing more. No link, no message body, nothing. I expected to find the subject header and a link that would open the original message.

Was I expecting the wrong result? Is there something obvious I might be doing that creates this result in error?

Thank you for your continued patience and help!

Re: Still Struggling

Korr, that is quite exceptionally strange… I think there’s something rather unique on your system causing this problem.

First, try downloading the latest version. This could be a spotlight linking problem. (Also make sure there aren’t any extraneous versions of the script on your drive that might confuse things.) Assuming the latest version doesn’t fix anything, please follow the instructions below to generate a script log so that I can better troubleshoot.

How to Generate a Script Log

  1. Open the Mail to KGTD script in Script Editor
  2. Display the Event Log History window (cmd+opt+l) and set the drop down menu at the top to log both events and results
  3. Highlight a message in Mail.app Run the script in Script Editor by clicking the “run” button
  4. See if it works. If it does, great, the script’s working and there’s something else going on.
  5. If it doesn’t work as expected, please use the contact form on the sidebar to paste in a message explaining what happened, plus the FULL log of events and results you got from Script Editor and I’ll see what I can do to track it all down.

Scripting Additions Instalation

I’m having the same problem and I did install the scripting additions. I’m assuming that one step left out of the instructions is to restart the computer if you install in the root library folder. That seems to be where all of MY scripting additions are stored.

Scripting Additions Instalation

(Sorry, I thought the last would be threaded with the message I was replying to.)

I’m having the same error that Alkis had…

Send Selected Messages to KGTD: Mail to KGTD Error -1708 (“^[[:space:]]*” doesn’t understand the «event SATIRPLl» message.) - Priority 0

As I said I think a reboot is required after installing in /root/library.

Unicode characters from email subject are converted to ????

I’m from RUssia and used to write in Russian, so if I send myself such a message (it uses Russian symbols ) Subject: тест @ дома > Музыка Body: какой то русский текст (some russian text)

— M

and appy Mail to kGTD script to it it’ll convert all characters from subject into question marsk so I’m getting a new project called ?????? , new context called ???? and new task called ???? , yet message body encoding is preserved and note looks exactly as in email - with all international Characters.

I suppose that this is a problem of Satimage but hope that this can be fixed.

kgtd does not link to the original email

I saw that there was an update on this post that mentioned the linking functionality back to the original email has been removed - any idea on when that might be coming back? Also - is there a way to include the attachment when sending an email to kgtd? It looks like a great script - thanks.

Can't download

Hey,

I tried to download the file but the URL http://inik.net/sites/inik.net/files/Mail_to_KGTD.zip seems to generate an HTTP 404 error.

Send to KGTD omits email text

I invoked KGTD through Quicksilver and it copies the “message body” from some emails but not on others?? - Most it does not.

Any ideas?

Re: Send to KGTD omits email text

This is a bug in Apple’s mail program and AppleScript. Any message that is in rich text/HTML appears to have no message body to AppleScript.

The only work around is to manually choose to display the plain text alternative (if it’s a multi-part message) and THEN run the script.

You can also force Mail to always show the plain text version of multi-part messages. Do a search on MacOS X Hints and you should find instructions.

Change body of message that is scanned by script

The script is great, but I was wondering if there is a way to change the part of the email that is scanned for kGTD syntax? For example the second line of an email. I am hoping to integrate this script with Jott so I can call in new lists items and have them added directly to kGTD. Any thoughts or suggestions would be appreciated.

I have the same question

I have the same question Seth.

Changing the script

Since kGTD is basically dead now, in favor of OmniFocus, I won’t be doing any more updates on the scripts. If you want to edit the script, it’s open source, so you’re welcome to do so. The scripts you download can be opened in your AppleScript editor of choice. Happy hacking!

Post new comment

The content of this field is kept private and will not be shown publicly.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.