// Apple Mail to Evernote 2.0 Beta — In English and Japanese!

UPDATED — April 2, 2012

A new version of the Apple Mail to Evernote script has been released which works around the bits of AppleScript that Apple broke in 10.7+!

I’ve left the older beta versions posted below for people who want to look at the MailTags code in them (I’ve removed this functionality from the new script)


Links to The OLD Scripts:

Click Here for The English Language Version

Click Here for The Japanese Language Version

Don’t forget to check out the other stuff in the Veritrope.com Code Library — it’s filled with other helpful AppleScripts, including many more for Evernote!

24 Responses to “Apple Mail to Evernote 2.0 Beta — In English and Japanese!”

  1. John says:

    Hi Justin – Thanks for the update to the script. I don’t
    use MailTags, but every time I capture a note to mail I get a
    prompt asking me for where the library for this is located. Is
    there a way to disable this, or to have the script ask once whether
    mailtags is installed? Thanks for the help.

    • Justin says:

      Hi John,

      Quick question to zero in on things: Is it happening every time you run the script, or is it happening every time you compile the script?

      If the answer is “compile”, then it’s probably something along the lines of this post on the Apple Discussion Board and I’ll look at a couple of approaches that I found just now to eliminate that.

      If the answer is “run”, then I need to double-check the code for a bug in the detection subroutine! ;)

      Let me know as soon as you can and I’ll start to dive deeper into this…

  2. David Higginson says:

    just installed the new version (from 1.2), and I’m having the same issues with asking for the MailTags helper app each time I run it.

    Not very familiar with applescript but I suppose digging through this to setup the different options will teach me something. Can I just delete the –CHECK FOR MAILTAGS section to get rid of that for now?

  3. Charlie Cano says:

    Works great, and thank you so much for your efforts – keep it up!

  4. Jake says:

    Hi Justin – thanks so much for this script!

    So far I haven’t had any problems, but I was wondering if you might be able to implement support for indev’s (maker of Mail Tags) other mail plugin called “Mail Perspectives.” That would be fantastic.

    Thanks again.

  5. JC says:

    I’m running 2.0 beta, with tagging_Switch ON, and without MailTags. Unfortunately, I’m getting request for library every time I run it. Also, no tags that I put in the text box are getting applied in EN.

  6. Akilesh says:

    Hi there — I’ve tried both this version and the older version and have the same problem on both, when trying to import Mail notes: after a few imported notes, Evernote puts up a dialog box which says “Internal Error. An internal database error has occurred that prevents Evernote from funcitoning properly. If the problem persists, please contact Evernote support.” If I simply let the dialog sit there without clicking “OK” — notes SEEM to keep being imported, but then when I finally click on “OK”, Evernote quits. When I restart it, all but a few of the notes are gone. Any idea what’s going on? Thanks.

  7. Reinier van der Hoek says:

    Since I installed the Mac OSX Lion, the script doesn’t import email in evernote.
    Any idea what goes wrong?
    I would like to have in working, I find this very useful.
    With regards Reinier

    • Justin says:

      Lion broke a number of Mail AppleScript, apparently including this one…

      I haven’t had a chance to look at it myself, but Barry, another Veritrope.com reader, recently wrote me the following:

      The problem is in the routine that pulls header information out HTML mail. The error is tied to this line:

      set myHeaders to content of header "Content-Type" of thisMessage

      I couldn’t really figure out why this was throwing a -1728 error, so I tried just setting the variable to an empty string:

      set myHeaders to ""

      As far as I can tell, it’s now working fine, although I’m pretty sure that my zeroing out that variable will come back to burn me at some point ;-)

      This might be a workaround until things get fixed. (And, of course, I’ll post more updates as I can!)

  8. Richard Allison says:

    I was wondering if you have released the revised script excluding the MailTag add-on? I used your first version with the trial of MailTag but didn’t use any of the Tag functionality. The script was flawless for adding to EverNote where I used the tags there.

    Thank you for your efforts and support.


  9. Richard Allison says:

    Sorry to bother you again but I was wondering if you’ve made any progress or have any ideas for the script. Have any other users figured a work around that I could take a shot at with AppleScript?

    Thank you for the work you’ve done.

    • Justin says:

      Hi Richard,

      It’s no bother — I appreciate the reminder!

      I am going to email you a private build that (I hope) should at least get you going while I’m sorting out some issues for the next public release.

      Please let me know here if you don’t receive it ASAP.

  10. JMichael says:

    Do you have a version that works with Lion?

    • Justin says:

      Still waiting on a fix from Apple…. :(

      • Richard Allison says:

        I don’t think Apple has this high on their list.

        Just sayin’

        • Justin says:

          Sad to say that I think you’re right… :(

          10.7.3 should be released shortly: If they’ve skipped over this again, then I’ll look at forking the code and making a Lion-Only script. My concern, other than making more work for myself, is that a script which can’t move email attachments into Evernote isn’t really useful — at least, not the way I use it.


          • Richard Allison says:

            Please understand, my comment was against Apple not doing their part, not towards you. I appreciate your efforts and will just keep checking back to see how this turns out.

            Thank you,

          • Justin says:

            No worries, Richard!

            I didn’t read your comment in that light — just took it as someone expressing the same frustrations that I have with the situation.

            Reminder to readers: I’ll be posting updates to the Veritrope.com Twitter account, so be sure to follow me there for the latest!

rss Subscribe to Comments RSS Feed

You can use these tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>