From: Friedrich Delgado Friedrichs <friedel@nomaden.org>
To: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: org-protocol links from adobe reader
Date: Mon, 11 May 2009 19:24:52 +0200 [thread overview]
Message-ID: <20090511172452.GA31283@taupan.ath.cx> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1233 bytes --]
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 <friedel@nomaden.org>
Laziness led to the invention of the most useful tools.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2009-05-11 17:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-11 17:24 Friedrich Delgado Friedrichs [this message]
2009-05-11 18:28 ` org-protocol links from adobe reader Sebastian Rose
2009-05-11 20:15 ` Friedrich Delgado Friedrichs
2009-05-12 9:13 ` Sebastian Rose
2009-05-12 11:49 ` Friedrich Delgado Friedrichs
2009-05-12 15:35 ` Sebastian Rose
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090511172452.GA31283@taupan.ath.cx \
--to=friedel@nomaden.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).