linking between zotero and evernote (in OSX)

I'm upgrading my paper-management workflow from 'labyrinth of folders' to an Evernote + Zotero mix. I already use Evernote a little for this by writing paper summaries in it, but I would rather do the 'heavy duty' management and organisation in Zotero. So, I'd like to easily switch between the Evernote note about a paper and the Zotero reference on it. I need:

Note: This is all with OSX 10.11.1 (El Capitan), Evernote 6.3, and Zotero 4.0.28.10. YMMV.

Zotero to Evernote

My solution here is to add an attachment to the reference which is a link to the Evernote URI. Zotero gracefully handles this, you just right-click on the reference and Add Attachment → Attach Link to URI...

The hard part is then getting the URI. In (my currently-up-to-date version of) Evernote, the Copy Note Link gives you a HTTP(S) link:

https://www.evernote.com/shard/asdfgh

This converts to the Evernote URI link if you paste it inside Evernote, which is pretty cool I guess but also not useful here.

I use the Evernote client and I don't want this, I want the URI like:

evernote:///view/adfgh

This is (for now, probably) known as Classic Note Link in Evernote, and you get it by holding down Alt on the menu after right-clicking on the note. Bizarre and annoying, but whatever. It works.

Now I can just double-click on the Evernote URI attachment on my reference in Zotero and it'll open the note (in my Evernote client) with my notes on it.

Evernote to Zotero

Now, we want to get the Zotero URI (to the reference) and include it in an Evernote note. The 'normal' URI you'd get from Zotero (using Item URI as your Default Output Format under Preferences → Export → Quick Copy) is:

http://zotero.org/users/local/asdfgh/items/asdfgh

What I really want is the non-HTTP URI, e.g.

zotero://select/items/asdfgh

However, if you paste that into Evernote it doesn't recognise it as a URI or anything that should be linkish. It just sits there, flat and idle and useless. This is pretty annoying given it can do this for Evernote URIs, as above, but whatever...

Solution Sketch

This solution is from brain.flush(); Connecting Zotero and Evernote and RTF-Links from Zotero in Evernote. This post isn't just a link to that blog because I fear link rot.

The workaround is pretty gross but bear with me. First, you modify Zotero so that its Quick Copy gives you a HTML-formatted URI, e.g.

<a href="zotero://select/items/asdfgh">Paper Title</a><br />

then convert the HTML in your clipboard to RTF, which can be pasted into Evernote and will act 'as desired'. The intermediate RTF representation looks something like this, btw, so clearly there's scope for further customisation:

{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf130  
{\fonttbl\f0\froman\fcharset0 Times-Roman;}  
{\colortbl;\red255\green255\blue255;\red0\green0\blue233;\red0\green0\blue0;}  
\deftab720  
\pard\pardeftab720\sl280\partightenfactor0  
{\field{\*\fldinst{HYPERLINK "zotero://select/items/asdfgh"}}{\fldrslt  
\f0\fs24 \cf2 \expnd0\expndtw0\kerning0  
\ul \ulc2 \outl0\strokewidth0 \strokec2 Paper Title}}  
\f0\fs24 \cf3 \expnd0\expndtw0\kerning0  
\outl0\strokewidth0 \strokec3 \  

Ew. But you never need to look at this.

Specific Steps

So now the workflow is: