[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) |
Hi.
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) + '/' +
encodeURIComponent(this.info.Title));"});
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
FDF
--
Friedrich Delgado Friedrichs <address@hidden>
Laziness led to the invention of the most useful tools.
signature.asc
Description: Digital signature
- [Orgmode] org-protocol links from adobe reader,
Friedrich Delgado Friedrichs <=