09
Oct
Evernote to MacJournal AppleScript
Tags: Apple, Applescript, Evernote, Export, MacJournal, tutorial

Veritrope reader Lem liked the MacJournal to Evernote script I posted the other day and commented:
“What would be nice, also, is a script to do the contrary: Export a notebook from Evernote to MacJournal, if possible with tags, annotations…”
It was followed by three exclamation points (!!!) so, unless he’s a fan of the band of the same name, the guy would really like a script.
Okay Lem — here you go. (!!!)
Features **UPDATED**
- **NEW** There are now two scripts included in the downloadable ZIP archive: One that attempts to preserve the formatting of the Evernote item by importing it into MacJournal as a Read-Only Web Archive formatted file, and another that will create an Editable RTF file that may not retain as much of the original formatting and/or embedded images. (See “Current Limitations” Below For More…)
- Each script exports a copy of all the selected entries in an Evernote notebook and saves them into MacJournal.
- Automatic Growl detection has also been enabled which will save you a trip to the Script Editor to enable/disable it.
Current Limitations and Open Issues
(Otherwise known as “Places Where You Could Help Out!”)
- Editing Your Notes: I wrote the original script to convert the HTML files that Evernote exports into a slightly different format called a “Web Archive” which bundles in all of the embedded images and information so that the note will look the same inside of MacJournal. The only problem is that MacJournal doesn’t edit that format (yet). Dan Schimpf (the developer behind MacJournal) and I have been trading some emails about it and he is looking into some options to enable Web Archive editing within MacJournal. Until then (or until I can figure out a better way of doing it), you’ll have to use two different scripts depending upon if you want to edit the contents of the note inside of MacJournal right away.
- Errors that will undoubtedly arise when you do something that I didn’t think of or test for!
How to Install and Use
Just run the appropriate script and select the notes that you want to send to MacJournal!
Source code and download link on the next page!
Evernote to MacJournal AppleScriptPages: 1 2


9 Responses to “Evernote to MacJournal AppleScript”
MANY thanks !!! !!! !!!
Hey — what can I say — I’m a fan of enthusiasm!
Thank you very much for this script.
I tried running the script (version 1.0.1), and was able to transfer some entries from Evernote to Macjournal, but many of them would give me the following error:
Can’t get item 1 of {}
Also, I can’t edit any of the entries that are transferred to Macjournal. I checked to see if the entries were locked, but they the inspector says they are “editable”.
Also, the transferred entries do not maintain formatting, such as bullets, line breaks, etc.
Any suggestions?
Thanks again!
Okay — here’s the latest update (and a question for everyone out there using the script):
Editing Your Notes:
Dan Schimpf (the developer behind MacJournal) and I have been trading some emails about the editing issues.
The problem boils down to this — I wrote the script to convert the HTML files that Evernote exports into a slightly different format called a “Web Archive” — and MacJournal doesn’t edit that format (yet).
Essentially, a Web Archive is a bundle of all the HTML code…plus any images used in the page. I chose this route so that the notes would arrive in MacJournal looking roughly the same as they did when they left Evernote. (Thought that might be important to you all!
)
That said, I can make a simple change in the script that would import the notes as RTF files. This would allow you to edit them, but you may lose some formatting and images in the process.
Dan is looking into some options to enable Web Archive editing within MacJournal (the best of all possible solutions) but, in the meantime, here is my question to you all:
WOULD YOU PREFER:
Can’t get item 1 of {} Error:
Haven’t been able to reproduce that in the latest build of the script. If you get it again, try emptying the trash and repeat the export. Either way, let me know if this happens again and I will do my best to get to the bottom of things!
Hello Justin,
Thank you for tackling this problem!
My vote is for the third option: “An additional dialog box that lets you pick between the two.”
I use these journals for a variety of tasks; certain entries favor the first option, others favor the second option. So the third option would give me more control.
As for the “Can’t get item 1 of {} Error:” – I noticed that it happens more consistently when I try to transfer numerous entries at once (like ten or more). Sometimes, the error indicates it can’t get a certain entry (out of several), but if I selected it individually, it works.
Thanks again for the help!
For now, I’ve decided to bundle two scripts into a ZIP file instead of writing the dialog box: One is identical to the 1.01 release except for being renamed the (READ ONLY) script. The other will create RTF files that you can edit inside of MacJournal and is named (EDITABLE).
Let’s see if MacJournal makes any changes in how it handles Web Archives in the near future and will potentially try to release a “unified script” again if conditions allow.
Hope you enjoy!
This is great! It works perfectly!
Thank you!
Justin,
This is great, really nicely done. Thanks very much.
In case this is helpful to anyone else, I like to tag the notes I import, so I added this line to your script in two places:
This is placed after the two blocks containing this code:
2
3
add tag noteTag to resultObject
end repeat
Dale
Dale,
Thank you very much for the kind words and — what’s more — for taking the time to roll up your sleeves and make the code better. This is exactly the spirit I’ve been working to create here at Veritrope.com!
In fact, your contribution reminded me of something that I had meant to ask Dan Schimpf (MacJournal’s Developer): “Any plans to make tags readable and writable via AppleScript?”. As it stands, they aren’t — but if you use any one the other Evernote scripts here, you’ll know that I’ve already developed a fairly solid “tagging subroutine” that I could drop into this script in a matter of minutes (were AppleScript support for tags in MacJournal to be enabled).
Anyhow, I’ve emailed Dan and, once I hear from him, I’ll pass along his response if anyone here is interested…
Trackbacks/Pingbacks