Evernote URLs

The Evernote import process retains the link back to the note in Evernote (evernote://…). This was in response to the majority of Users’ desires to run Evernote in conjunction with DEVONthink. However, more recently, people are converting completely over to DEVONthink.

Attached is a script that will convert Evernote URLs into their source URLs (if the note has one). It relies on you making a selection to convert, allowing you to switch completely or retain some links back, if desired.

  1. UnZIP the archive.
  2. In the Finder, hold the Option key and choose the Go menu > Library in the menubar at the top of your screen.
  3. Navigate to Application Support/DEVONthink Pro 2/Scripts and a subfolder of your choice.
  4. Drop the unzipped Applescript into the chosen folder and it should be immediately available in DEVONthink Pro / Pro Office.
  5. In DEVONthink, select an Evernote note (or multiple notes) and run this script. The URL for each record will be changed, if possible.

Updated for a change in the Evernote URL. BLUEFROG 01.12.2017
DT Change Evernote URL.scpt.zip (2.85 KB)

Thank you!

Not working.

Suggestion: Do not delete your notes within Evernote before running this script in DEVONthink. This script does call backs to the Evernote app to locate original URL.

I’m so grateful that you did this!

However, it doesn’t seem to be working quite correctly.

For example, if I have an Evernote note with the URL: nybooks.com/articles/2016/03 … ce-terror/,

for some reason, this script changes it to this:

nybooks.com/issues/2016/03/2 … he+present.

i.e. it’s appending the note text to the URL.

Do you know why? The weird thing is that when I do an “Info” on the note in DTP, it looks fine, but URL as displayed just above the note body in DTP consists of the much longer one above.

I can’t reproduce this here. It’s pulling the URL from Evernote’s data, then just setting the file on the DEVONthink record to whatever Evernote reported.

I just tried it with the URL you provided, captured it to Evernote, imported in DEVONthink, and watched the responses. All is good here.

I can give you the original Evernote note. Here it is:

dropbox.com/s/u89cl5bru1jgp … .enex?dl=0

Add it to Evernote (I have version 6.10), then import it into DTP 2.9.9

No need to add it to Evernote. Here’s what Evernote says what that file’s URL is…


<source-url>http://www.nybooks.com/articles/2016/03/24/how-the-french-face-terror/##Since+Islam+arose+in+a+Europe+that+had+psychologically+%E2%80%9Cemptied+itself+of+its+old+nations+and+religion%2C%E2%80%9D+according+to+Manent%2C+Europeans+assumed+that+Muslims+would+abandon+their+moeurs%2C+too%2C+and+gratefully+embrace+the+modern+ideology+of+human+rights.+Nothing+of+the+kind+took+place+because%2C+in+Manent%E2%80%99s+view%2C+Muslims+understand+something+secular+Europe+doesn%E2%80%99t%3A+strong+moeurs+binding+a+community+trump+abstract+political+principles+held+by+unconnected+individuals.+%28This+was+also+the+fundamental+thesis+of+Houellebecq%E2%80%99s+Submission.%29+Had+France+retained+a+sense+of+itself+as+a+sovereign+nation-state+with+a+Christian+moral+legacy+and+common+political+purpose%2C+assimilation+might+have+been+easier%2C+paradoxically%2C+since+then+Muslims+would+have+been+trading+one+sense+of+deep+belonging+for+another.+But+in+a+vacuum+it+was+inevitable+that+the+side+offering+meaning%2C+collective+attachment%2C+even+global+ambition+would+dominate.+That+is+why+%E2%80%9Can+islamicization+by+default+is+now+the+hidden+truth+of+our+condition.%E2%80%9D+The+scent+of+schadenfreude+wafts+through+these+pages%2C+as+if+Manent+is+straining+not+to+say+openly+that+contemporary+Europe+had+it+coming.</source-url

That’s fascinating; thanks! But when, then, when I click on “Info,” does DTP show what looks like a normal URL?

But if I click on the “@” symbol, then of course that incorrect URL is used.

Put your cursor in that URL field, then keep pressing the down arrow

Thanks.

Now can you click on the “@” symbol in the “Info” box and get the link to open successfully in Safari? I can’t – but if I copy the URL and paste it into Safari’s address bar and hit return, it works.

These URLs implement a proposal for an open web standard for sharing highlighted web content:
indieweb.org/fragmention
medium.com/making-instapaper/in … .oaykcqqws

This is a proposal, not a standard.

Right, but what is DT doing when sending it to Safari?

Nothing. I just clicked the @ symbol in the Info pane (after setting Safari to be the default browser) and it opened the website as expected.