emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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 --]


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 <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.

             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 ` 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:

  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 \
    --subject='Re: org-protocol links from adobe reader' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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).