emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-protocol links from adobe reader
@ 2009-05-11 17:24 Friedrich Delgado Friedrichs
  2009-05-11 18:28 ` Sebastian Rose
  0 siblings, 1 reply; 6+ messages in thread
From: Friedrich Delgado Friedrichs @ 2009-05-11 17:24 UTC (permalink / raw)
  To: Emacs-orgmode mailing list


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-12 15:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-11 17:24 org-protocol links from adobe reader Friedrich Delgado Friedrichs
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

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