From mboxrd@z Thu Jan 1 00:00:00 1970 From: d.tchin Subject: Re: org-protocol in windows and Acrobat Reader Date: Mon, 19 Mar 2012 08:03:51 +0000 (UTC) Message-ID: References: <87d389pt7f.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9XZX-00015R-Tv for emacs-orgmode@gnu.org; Mon, 19 Mar 2012 04:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9XZR-0004JV-KZ for emacs-orgmode@gnu.org; Mon, 19 Mar 2012 04:04:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:54344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9XZR-0004JQ-CO for emacs-orgmode@gnu.org; Mon, 19 Mar 2012 04:04:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S9XZP-000872-OR for emacs-orgmode@gnu.org; Mon, 19 Mar 2012 09:03:59 +0100 Received: from APuteaux-651-1-71-78.w81-249.abo.wanadoo.fr ([81.249.110.78]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Mar 2012 09:03:59 +0100 Received: from d.tchin by APuteaux-651-1-71-78.w81-249.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Mar 2012 09:03:59 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org > > This indicates that .replace('|',':') didn't work out as expected and > org-protocol received > > org-protocol://store-link://file%3A%2F%2F%2FC%7C%2FTemp%2Ffile.pdf > ^^^ > > Maybe this could do the trick: > > ,---- > | app.addMenuItem({cName:"org-store-link", cParent:"File", > | cExec:"app.launchURL('org-protocol://store-link://'+ unescape > | (encodeURIComponent(this.URL.replace('|',':'))));"}); > `---- > Indeed I get the corresponding character. org-protocol://store-link://file:///C:/Temp/file.pdf The problem of the bad interpretation of the character "/" still remains when I go back to emacs. I get the following proposition when I use C-c C-l : file: (C:). Thank you for your help. > I.e. replace | by : in the original URL before encoding it. > > Best, > -- David > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena jabber.org > Email..... dmaus ictsoc.de >