From mboxrd@z Thu Jan  1 00:00:00 1970
From: Sebastian Rose <sebastian_rose@gmx.de>
Subject: Re: org-protocol links from adobe reader
Date: Mon, 11 May 2009 20:28:38 +0200
Message-ID: <87my9j5wa1.fsf@kassiopeya.MSHEIMNETZ>
References: <20090511172452.GA31283@taupan.ath.cx>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1M3aBT-0000QK-1G
	for emacs-orgmode@gnu.org; Mon, 11 May 2009 14:25:03 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1M3aBO-0000OO-Ds
	for emacs-orgmode@gnu.org; Mon, 11 May 2009 14:25:02 -0400
Received: from [199.232.76.173] (port=41978 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1M3aBO-0000OH-1J
	for emacs-orgmode@gnu.org; Mon, 11 May 2009 14:24:58 -0400
Received: from mail.gmx.net ([213.165.64.20]:51407)
	by monty-python.gnu.org with smtp (Exim 4.60)
	(envelope-from <sebastian_rose@gmx.de>) id 1M3aBN-00072z-8C
	for emacs-orgmode@gnu.org; Mon, 11 May 2009 14:24:57 -0400
In-Reply-To: <20090511172452.GA31283@taupan.ath.cx> (Friedrich Delgado
	Friedrichs's message of "Mon, 11 May 2009 19:24:52 +0200")
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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 <emacs-orgmode@gnu.org>

Hi Friedrich,


I was planing to investigate for org-protocol and Acrobat for a long
time now and never got around to make it.

Great stuff!!

I think we should add this to the org-protocol docs on worg. How about
adding it to the org-protocol docs on Worg:

   http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3

I wouldn't bother to do it myself, but, as you might have read on the
other thread, code_swarm is better for projects with lots of committers
;-)


Best


   Sebastian


Friedrich Delgado Friedrichs <friedel@nomaden.org> writes:
> 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