From mboxrd@z Thu Jan 1 00:00:00 1970 From: Friedrich Delgado Friedrichs Subject: org-protocol links from adobe reader Date: Mon, 11 May 2009 19:24:52 +0200 Message-ID: <20090511172452.GA31283@taupan.ath.cx> Reply-To: friedel@nomaden.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0716162245==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3ZFN-0008US-Os for emacs-orgmode@gnu.org; Mon, 11 May 2009 13:25:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3ZFI-0008Tc-Ed for emacs-orgmode@gnu.org; Mon, 11 May 2009 13:25:00 -0400 Received: from [199.232.76.173] (port=45268 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3ZFI-0008TY-8z for emacs-orgmode@gnu.org; Mon, 11 May 2009 13:24:56 -0400 Received: from dudelab.org ([212.12.33.202]:1162 helo=mail.dudelab.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M3ZFH-00032y-Rr for emacs-orgmode@gnu.org; Mon, 11 May 2009 13:24:56 -0400 Received: from abrasax.taupan.ath.cx (p5B10E04B.dip.t-dialin.net [91.16.224.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Friedrich Delgado Friedrichs", Issuer "User CA" (verified OK)) by mail.dudelab.org (Postfix) with ESMTP id B2A8322814F for ; Mon, 11 May 2009 19:23:43 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode mailing list --===============0716162245== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 Friedrich Delgado Friedrichs Laziness led to the invention of the most useful tools. --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoIX2MACgkQCTmCEtF2zECDZACfQ4V1+D7w8zxBNIiZcj93RdFA glcAn2kldEKyWMsyEMkS8Hn03Zszgv7W =7kuu -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP-- --===============0716162245== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0716162245==--