Nik's Blog

Geekery, witty insights, software (of dubious quality) and more!

Problems with Mail to KGTD

A number of users have reported that when their mail rules activate Mail to KGTD, they get an error type 8. I’ve tracked down the CAUSE of this problem, but I’m not quite at a solution yet.

The cause is that when messages come in, they don’t seem to have message IDs anymore. Since my script requests a message ID, everything borks when it tries to get it. Once messages are properly received (after rules are run), they have IDs (like they should), which is why Mail Act-On continues to work, as will the rule if you edit it and then request that the new rule run on all messages in your inbox.

The script also works fine from Quicksilver, LaunchBar, the scripts menu, FastScripts… Any way you kick it off except for on an incoming mail rule will work just fine.

As far as I can tell, this is a bug in Mail (one of many Applescript bugs which haven’t been fixed for many, many, updates, I’m afraid). It was introduced during a recent security update, which I hadn’t yet installed, which is why I was having trouble replicating this error.

The best I can do, I think, is to remove the ability to create a link to the original message, which will avoid the need for a message ID, but also loses the link, which I know a lot of users like. I’m hoping I can find a way around that.

So, at any rate, I’ve found the root cause of the problem and I’m working on a fix. I’ll post an update here once I have a fix or workaround.

In the meantime, please let me know in the comments whether or not you make use of the “link” feature, or whether you’d just as soon see it go by the wayside. It takes a looooong time on some folks’ Macs, so perhaps it’s just unnecessary.

@inik

inik: RT @mikememoli: "The NFL: We're working on that whole brain injury thing." >
inik: I am a sucker for dog ads. Add Ponda Baba and it's like bliss. >
inik: Live stream only available to Verizon customers. Wonder how much that cost them. Anyone know? #superbowl >
inik: #superbowl >
inik: Attention friends: The next few hours will be shameless whoring as I explore every Superbowl-related social networking crapfest I can find. >

Google+

I love Seth's quote at the top. I think that's my new motto.. ; )

Powered by Plu.sr
>
Griping about OS X Lion? Here's two nifty tools that replace a variety of poorly supported third party tools: Command-line and Automator access to video and audio conversion. Super easy to use, and very flexible and supports any format that Quicktime can encode/decode. (So Perian is a must-install if you want to handle DivX/3viX, etc.)

Yes, ffmpeg, Handbrake and...
>
Fix Google Reader's horrible new interface with this user script! Now it fits nicely on my MacBook's small screen. >
Happy 11/11/11 11:11:11! >
What makes this ad awesome is not the true-to-life irony, because the idea is hardly innovative, but rather the excellent execution. Reminds me a bit of that excellent Nutri-Grain spec commercial. Quick delivery, good actors, hit all the high notes. Love it. >