The latest version of the AppleScript can now be found in the Veritrope.com Code Library!
Hope you enjoy!
Anyway to get this to work in devonthink 1.9? Not working with this version..
I haven’t tested this out, but you might try changing one line of the script in Script Editor to see if that gets you up and running:
Open the Script in Script Editor and find the first line under the (* MAIN PROGRAM *) comment;
Replace the line that says tell application id “com.devon-technologies.thinkpro2″ with tell application “DEVONthink Pro”
Compile and save the script
Let me know if that works for you — if it does, I may include that in the next revision of the script (assuming that it doesn’t break anything in 2.0!)
Justin, thanks for the tip. I however solved it just by upgrading. Now that my stuff is out of Devonthink, i am fully into evernote. Actually, i only had devonthink personal, and i dont think the personal version has script support.
Is the link to the DevonThink –> Evernote utility still active? I could download other scripts but not thie one.
Thanks for letting me know about the problem with the link!
It should be fixed — hope you enjoy the script and let me know how you like it (and the others).
Thx Justin – all fixed!
These scripts are great, btw – thx for everything!
I wanted to try the change that Justin mentioned above to use this script with my copy of DEVONthink Pro 1.5.4, but I can’t get into the script (it’s run only) to make the change. And I tried pasting the code above directly into AppleScript Editor, but I got syntax errors.
Help! I really want this to work, but I am just clueless. Thanks!
I quickly compiled a version for you to try — download link is under the original link.
You’re going to have to be my “guinea pig” on this one, as I don’t have DEVONthink 1.x anymore…. try it out and let me know your results!
Thanks for the fast response. I think it almost worked, but then I got the following dialogue box:
“Item failed to import: -1728 DEVONthink Pro got an error: Can’t get of content id 24143 of database 1.”
I guess I could upgrade to the DEVONthink 2.0 beta, but I am unsure whether I want to ultimately pay for the upgrade, hence the migration to Evernote — or at least that was my thinking…
I look forward to hearing back from you, and again thanks for the fast turnaround — awesome!!!
Also, does the script need to notate that one is using DEVONthink Pro vs DEVONthink Personal? That just popped in my head as well as I downloaded the Pro 2.0 beta…thanks!
Happy to (try to) help!
The script assumes that you’re running DEVONthink Pro as the Personal Edition is not fully supported for AppleScripting.
Not sure why you’re receiving that error message and, since I don’t have DEVONthink 1.x on my system anymore, it’s not really possible for me to test. Can you tell me what kind of note you were trying to export? (i.e., a PDF, a text file, etc.).
Since you’ve probably already downloaded and installed the DEVONthink beta by now, why don’t you use the original DEVONthink 2 to Evernote script to export into Evernote while you evaluate the new version? I believe that DEVONthink leaves the original version 1.x database intact when it converts it to the 2.0 compatible version — although, if you haven’t upgraded yet, you should probably back it up just in case my memory is incorrect!
Yes, it does work with the beta, which is pretty cool in and of itself
“Source code and download link on the next page!”
The next page? Where is the next page? I can’t see any hint and the text above is not a link. Please clarify.
Never mind. Found it. Thanks.
In case anyone else has the same question:
thanks for the script, I’ve been using it for a while and it works great for PDF and RTF notes; the problem is that it doesn’t seem to work with HTML notes, I get a Growl notification saying that the export has been successful but the note does not show up in Evernote. Is it a known limitation? thanks for your help. Lucas.
It was a bug…. (I can’t believe that no one else reported this one!)
Should be fixed in version 1.2 of the script — please download it and let me know if it works for you.
that was quick!, tried it and it works!, one small detail though, if you copy the source directly you have an extra “(*” in line 01, and the script won’t compile. thanks a lot, this is really helpful.
… and I’m nominating you for “Bug Finder of the Month!”! (This is a purely ceremonial honor, sadly.)
To export your DevonThink items to EverNote easily, use this AppleScript! [link to post]
– Posted using Chat Catcher
Devonthnk to Evernote not working for me. I get a notification – The variable theTags is not defined. Any way round this, thanks?
Ah — the joys of everything not working when a beta goes final..
I’ve worked up a quick patch for some tagging-related anomalies that were causing your error (see notes on Page 1). It is Version 1.21 of the script and is now available for download.
Next stop — getting in touch with DEVON to let them know about it!
Justin. Huge thanks and respect. Using the new (final) release of DEVONthink Pro Office 2.0 and the latest version of Evernote for Mac I can now send documents both ways. The two coolest notetaking/archiving applications are now officially talking to each other. Excellent work!
FYI — Christian Grunenberg at DEVONtechnologies provided some code that will restore full tagging support, and I’ve updated the script to version 1.22 to incorporate his suggestion.
For any other DEVONthink scripters out there having tag-related problems, he also says the following:
The next release will fix [the tags] and the tags property will return an empty list/array instead of missing/undefined values in case of no tags.
Let me know how it works for you!
You are my hero. I’ve been trying to find a way to transport over 20,000 files from DevonThink Pro 2.0 to EverNote and had almost given up. My only problem, however, is that I have a lot of formatted text (italics, colored fonts, etc) that are now gone. Is there any way to move the files and keep all formatting intact?
Glad that the script was helpful!
I am actually looking at ways of doing just that (Some of it is a function of how Evernote processes the text, however…).
If it’s possible, I’ll make it happen!
That’s great, Justin. I look forward to your updates. Thanks again for your help!
I know you’re looking into ways of making the formatting work out, but if I were to hire you to write me a script to do just that, how much would it cost? I’m to the point that I would pay someone for a script that would make it possible to copy my DevonThink notes over to Evernote, but I want ALL formatting to be identical. I actually love both DevonThink Pro and Evernote, I just want to be able to have my notes on both programs and have them look the same. Is this something you would consider doing for me?
**I DO** create custom AppleScripts and workflows for my clients and would be happy to tailor any script to you and to how you work! You can read the short description of how that works and get in touch so we can coordinate the details.
Hi.I’ve using Devonthink pro for about one month yet and I was looking around for evernote too in the cloud. Thanks a lot for your sripts,very helpfull!
Would it be possible to transfer also the ‘created date’ from Devon>Think notes til evernote?
Thanks for this suggestion — I am going to add it to my list of things to look at for an upcoming revision of this script!
Anything I can do to speed up the process? Donation?
While I’d always appreciate a donation to the two groups that I’m assisting in Laos, it wouldn’t really expedite things. I am updating many scripts right now (including this one) and am pushing them out as fast as I can!
I’d recommend subscribing to the Twitter feed to be notified of the new version as soon as it’s online…
This script no longer works, it just freezes after specifying the accepting new book and Evernote. anybody else getting this hang?
Should mention this is after upgrading to LION
You anticipated my first question nicely, Justin!
Second question: Have you also upgraded DEVONthink Pro to version 2.2? (I just successfully ran the script using OS X 10.7 / DEVONthink Pro 2.2 / Evernote 2.2.3 )
I indeed have the latest copies of both of these software titles. The import seems to be working now with a different set of files. Not sure what the issue was. Sorry for the stir
Hi, I ran into some trouble with the script in two places, going from DevonThink 1.5.4 to Evernote 3.0.2.
1. I haven’t used tags, and for some reason that was giving me an error, so I commented out the “if exists tags of this_item then” block and just left in the “set theTags to defaultTag” line.
2. When loading raw text into DT, I often used scripts and sometimes the entering script would set the name of the DT item to be the entire entered text. If the name is too long, the export to Evernote script causes Evernote to crash because it sets the Evernote title to the DT name and it’s too long. I didn’t do an exhaustive test, I found that 195 characters was safe, and that seemed like plenty enough for me. So I added the following code right after the line “set thename to (the name of this_item)”:
You’re running an older version of DEVONthink Pro, which would explain the tag error.
The title code addition is a great idea and I’ll add it in to the next build! Thanks for pitching in and helping to improve the AppleScript.
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>
Notify me of followup comments via e-mail
Type your email address below and I'll occasionally send you site updates and sneak peeks about things you're interested in!