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 January 9, 2011 at 11:55 am #

    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 Lancy January 9, 2011 at 1:54 pm #

      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…

      • John January 9, 2011 at 1:55 pm #

        Thanks for getting back to me — it happens every time I run it. If you are not seeing this, let me know what to try. Thanks!

        • Justin Lancy January 9, 2011 at 2:20 pm #

          No problem!

          FYI — I just sent you an email so we can work together directly to sort this out.

  2. David Higginson February 8, 2011 at 8:43 pm #

    Hello,
    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 February 17, 2011 at 4:29 pm #

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

  4. Jake April 2, 2011 at 3:42 pm #

    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 April 5, 2011 at 5:27 pm #

    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.

    • Justin Lancy April 7, 2011 at 12:43 pm #

      I’ve decided to make a Non-MailTags version of the script until I can sort the Library request issue. Follow the Veritrope.com Twitter Feed to get the announcement of its release… or you can just keep checking back! ;)

  6. Akilesh April 10, 2011 at 10:07 pm #

    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.

    • Justin Lancy April 10, 2011 at 10:43 pm #

      I’m not able to duplicate this error…. anybody else getting this one? Maybe an unrelated database error?

  7. Reinier van der Hoek August 15, 2011 at 4:52 am #

    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 Lancy August 15, 2011 at 6:34 am #

      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 August 18, 2011 at 7:07 am #

    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.

    Regards,

    • Justin Lancy August 18, 2011 at 8:10 am #

      Not yet — but I’ll try to get it posted within the next few weeks!

  9. Richard Allison September 21, 2011 at 10:01 pm #

    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 Lancy September 22, 2011 at 2:43 am #

      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 November 24, 2011 at 2:10 am #

    Do you have a version that works with Lion?

    • Justin Lancy November 24, 2011 at 10:38 am #

      Still waiting on a fix from Apple…. :(

      • Richard Allison January 5, 2012 at 1:23 pm #

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

        Just sayin’

        • Justin Lancy January 5, 2012 at 1:52 pm #

          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.

          Thoughts?

          • Richard Allison January 5, 2012 at 2:36 pm #

            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 Lancy January 5, 2012 at 2:41 pm #

            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!