Export from Yojimbo to Evernote with AppleScript


Want to quickly export your Yojimbo entries into Evernote? Read on!

After releasing the Evernote to Yojimbo AppleScript earlier this month, some readers asked if there was a script to do the reverse — Yojimbo to Evernote exporting.

Brett Kelly had already written a great script that would do a complete transfer of all of your Yojimbo items into Evernote. I asked him if he would mind if I used it as a launching pad for a fuller script — and he graciously told me to go for it!


  • This AppleScript exports a copy of all the selected entries in your Yojimbo database (except those in the Trash) and then imports them into an Evernote notebook.
  • When the script needs to export a file first, it places it into a temporary folder on your Desktop and then deletes it when completed.
  • In addition to facilitating a full export of all your items into Evernote, this script also gives you the option to export items by Collection (i.e., Images, Bookmarks, PDFs).
    Main Archive Window
  • Any tags inside Yojimbo will be added to your imported notes in Evernote. You’ll also have a chance to add additional tags to the note on the way in, and you can now select which notebook will receive the import (or create a new one!).
    Tag Window
    multiple tags
  • When the “Source URL” slot wasn’t already being used for a web link, I added clickable URI links that open up your original Yojimbo note.
  • Automatic Growl detection has also been enabled which will save you a trip to the Script Editor to enable/disable it. As the export completes its transfer of a Collection, Growl users will see a notification window with that collection’s icon and the number of items that were transferred. If you’re transferring everything all at once, you’ll get notifications for each collection so you can track the progress of your export. When the script is complete, it’ll give you the final tally via Growl as well.
    Growl CollectionGrowl total

How to Install and Use

The code is now housed in the Veritrope.com Code Library (See Link Below)

My fellow AppleScript ninjas (or since we’re talking about “Yojimbo”…AppleScript Samurai) — Dive in to the code and, if you have any suggestions or problems, please let me know about them in the comment thread below.

And remember:

  1. These scripts are being provided for the benefit of the Mac community. While they work wonderfully for me, I cannot take responsibility for any data you might lose (or if your laptop turns into a pumpkin or something…);
  2. “Community” means “participation”. Please share with the rest of us *how* you use these scripts in your workflow, how you think they could be improved (and feel free to help someone if they don’t understand something!)

Click Here To Get The AppleScript From The Veritrope.com Code Library

Is there a script to do the reverse?

Click here for the Evernote to Yojimbo Script!

Interested in what other scripts are available for Evernote?

Click here to see the latest list!

35 Responses to “Export from Yojimbo to Evernote with AppleScript”

  1. Bill Morgan January 4, 2010 at 11:16 pm #

    Does this script require Yojimbo 2, or will it work with 1.5? I’ve been looking for a way to pry my data out of Yojimbo for many months now. Thanks!

    • Justin January 5, 2010 at 6:19 pm #

      That’s actually a question I don’t have an answer for! (When I developed the script, I used Yojimbo 2)

      Anyone successfully using this with version 1.5?

  2. eecastro (Eric Castro) February 22, 2010 at 4:28 pm #

    Twitter Comment

    Ohhh, so happy for the Yojimbo to @Evernote export script. [link to post] The Mac community is as great as Apple Script is.

    Posted using Chat Catcher

  3. speedmccoy March 5, 2010 at 11:45 am #

    This worked with Yojimbo 1.5 running on Leopard 10.5.x. Thank you for the script. – Tom

    • Justin March 5, 2010 at 11:53 am #

      Thanks for the report, Tom — hope you enjoy the script!

  4. yk884 (ハヤシユカ) April 3, 2010 at 7:59 am #

    Twitter Comment

    Evernoteハンドブック読んでたら、Yojimboになんでもかんでも取り込んでたのと同じ感覚でやればいいのか?との考えに至り、とりあえずYojimboからEvernoteへエクスポート [link to post]

    Posted using Chat Catcher

  5. Tim April 25, 2010 at 12:39 pm #

    beware that if you have titles of your Yojimbo notes that are longer than 255 characters Evernote will take them, but then you will get “Multiple Validation Errors” and you will not be able to save them nor sync. This script was fantastic, but I had to adjust it to truncate the longer titles on my notes before I could load them.

    • Justin April 25, 2010 at 12:53 pm #

      Hi Tim,

      You are absolutely right! That’s something I discovered on one of my other Evernote scripts…. And forgot to add back into this one! 🙁

      Thanks for the reminder — and I’m glad that you’re enjoying it!

  6. Andy April 29, 2010 at 3:03 pm #

    I keep getting this error: Import Failure: Failed to export item due to the following error: -1728 )Yojimbo got an error: Can’t get every class YImg of library). Any clue?

  7. Andy April 29, 2010 at 3:44 pm #

    nevermind. I just downloaded the yojimbo 2 demo and after doing that, the export worked. I was at 1.4.2 before. Thanks!

  8. Sena Gbeckor-Kove June 1, 2010 at 3:24 pm #

    Does this work on password protected items as well?

    • Justin Lancy June 2, 2010 at 12:51 am #

      Hi Sena,

      I am currently “on the road”, so I am going to have to try to answer your question from memory (always a dangerous proposition! 😉 )

      There is a bit of code in there to deal with password protected items, but my recollection is that there was some issue with it and that I commented it out until I could properly debug it.

      Of course, I might be remembering things incorrectly — so feel free to give it a shot and to let me know what happens! And if you’re handy with AppleScript, feel free to roll up your sleeves and share some code here in the comments to get the ball rolling!


      • Sena Gbeckor-Kove June 2, 2010 at 2:49 am #

        Hi Justin,

        Thanks for the reply. I gave it a go and it worked for most but not all of my protected items though some of the problems could have been with a timeout.

        In the end I decrypted everything in Yojimbo before doing the import. I’ll now selectively encrypt some notes and passwords.

        Cheers for getting me this far

  9. Channing July 22, 2010 at 6:40 pm #

    Is there a way to add the exporting of the comment field in the Password and Serial notes? As it stands those fields are forgotten – thus losing in my case a lot of valuable info.

  10. Nick September 23, 2010 at 9:09 am #

    I am a complete novice in these things, but is there a way to write into the Yojimbo-to-Evernote script a way to ignore duplicates. In other words, if I make addition/changes to Yojimbo, can I re-export those without creating duplicate notes in Evernote? Thanks for any help.

    • Justin Lancy September 23, 2010 at 11:56 am #

      That might be possible to pull off without too much code bloat…. let me look at it and I’ll see if it makes sense.

      I was also thinking maybe just a generic “Evernote Duplicate Finder” script would be good — and useful to a broader group. What do you think?

      • Nick September 24, 2010 at 8:05 am #

        Thanks for your quick reply. I’m not savvy enough about these things to know how to write a script or what might work best. But the duplicate finder seems like a good idea. What I’m really after is a way to sync Yojimbo to my iPhone/iPad for offline access. If I could simply “sync” it to Evernote without duplicating everything, that would probably suit. (It’s really curious that Bare Bones apparently does not have an iPhone/iPad app in the works.)

  11. Ginger Campbell February 13, 2011 at 8:03 pm #

    The Script seems to have hung at 1397 items out of 2694.

    The Apple Script Editor is “not responding”

    If I “force quit” is there any way to run the script again with out duplications?

    • Justin Lancy February 14, 2011 at 8:54 pm #

      Hi Ginger,

      No — It’ll make duplicates. 🙁

      Not sure why it hung, but you might try to repeat it in smaller batches…

  12. EFerrigan July 10, 2011 at 2:03 am #

    My Yojimbo database is over 2 Gig and Evernote has a monthly limit of 1 GIG on importing with the premium service which I just paid for. Is there a way to break this into smaller chunks so I can make it work for me? I’ve tried using just the PDF export but it quickly used up the 1 GIG limit and all came to a halt. Im also working with Evernote to see if they can assist on their end. Thanks

    • Justin Lancy July 10, 2011 at 4:01 pm #

      Hi Ed,

      My suggestion would be to import all the Yojimbo items into a LOCAL notebook first and them move them yourself into Synchronized notebook(s) as your quota allows!

  13. EFerrigan July 10, 2011 at 10:54 pm #

    Ok I transferred over 6000 Yojimbo entries to Evernote but no PDF’s are attached…only the link back to the Yojimbo original file. Any ideas what I might have done wrong? All entries show a 0k attachment.

    • EFerrigan July 10, 2011 at 10:56 pm #

      Ok never mind on my last entry. I closed evernote and reopened it and they all showed up.

      • Justin Lancy July 10, 2011 at 11:00 pm #

        This is my favorite kind of follow-up comment! 😉

        Glad it’s working for you!!!

  14. Stuart July 10, 2013 at 5:27 am #

    Thanks! This worked for me as of today (July 10, 2013) exporting from Yojimbo 3.0.4 into Evernote 5.1.4.

  15. Michael August 22, 2013 at 10:58 am #

    Partially worked for me: I selected “Bookmarks” when asked “Which items to Archive to Everynote?”, each bookmark was downloading as a complete web page.

    After looking at the script there is a small bug (typo). In “selectedCriterion”:
    if the_Criterion is “Bookmarks” then
    should have AllExportYojimboBookmarks, not AllExportYojimboImages. After I made that change locally, it works fine!

    Thanks for a nice script.

    • Justin Lancy September 15, 2013 at 2:29 pm #

      Thanks Michael – Rolled your fix into the script! 🙂

  16. Jim Ewing September 28, 2013 at 11:43 am #

    Seems Growl has redesigned and broken the script. Is there a version existing where the use of Growl is removed, or a version coming which adapts to the new Growl app from the App Store? I have tried hacking at it and just created more havoc. Getting too old, alas.