[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] org-protocol links from adobe reader

From: Friedrich Delgado Friedrichs
Subject: [Orgmode] org-protocol links from adobe reader
Date: Mon, 11 May 2009 19:24:52 +0200
User-agent: Mutt/1.5.18 (2008-05-17)


I've just migrated from org-annotation-helper to org-protocol and I've
managed to adapt the hints from
http://article.gmane.org/gmane.emacs.orgmode/6810 to org-protocol.

It's simple, you just change the protocol accordingly, and call
encodeURIComponent, so you arrive with:

app.addMenuItem({cName:"org-store-link", cParent:"Tools",
   cExec:"app.launchURL('org-protocol://store-link://' +
   encodeURIComponent(this.URL) + '/' +

for org-store-link and

app.addMenuItem({cName:"org-remember", cParent:"Tools",
   cExec:"app.launchURL('org-protocol://remember://' +
   encodeURIComponent(this.URL) + '/' +
   encodeURIComponent(this.info.Title) + '/');"});

or org-remember.

Drop these into ~/.adobe/Acrobat/9.0/JavaScripts and you should be
good to go.

Note that modern emacsen also are able to display pdfs and
org-store-link will already come up with a valid file:// link, but
doesn't give you the document title, so this might be convenient, even
if you prefer to open links to pdf files in emacs.

Kind regards
        Friedrich Delgado Friedrichs <address@hidden>
Laziness led to the invention of the most useful tools.

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]