From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Zang Subject: Re: Link-protocols Date: Mon, 1 Mar 2010 20:03:50 +0100 Message-ID: <61628028-883F-414F-881C-954D7E116B4F@gmail.com> References: <71467D6F-AFC1-41D1-98E1-769CEAC861BB@gmail.com> <709E8EC5-5644-4A8D-A512-19BF3A7F4BEC@yahoo.com> <1E6E90F1-CE8E-45E4-B420-10E2AF9BE493@gmail.com> <2EC25EC8-DB09-44A0-90DE-7F394DBB0D34@yahoo.com> Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmAuQ-0007zJ-Fb for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 14:04:02 -0500 Received: from [140.186.70.92] (port=36918 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmAuO-0007y7-Rx for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 14:04:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmAuK-0000dp-WA for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 14:04:00 -0500 Received: from mail-fx0-f222.google.com ([209.85.220.222]:36627) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmAuK-0000dh-Cj for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 14:03:56 -0500 Received: by fxm22 with SMTP id 22so2841695fxm.26 for ; Mon, 01 Mar 2010 11:03:53 -0800 (PST) In-Reply-To: <2EC25EC8-DB09-44A0-90DE-7F394DBB0D34@yahoo.com> 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: Anthony Lander Cc: emacs-orgmode Hi Anthony, thanks a lot - that works! Indeed, the org-mailing-list is one of the = nicest places on the 'web! Best, Christian Am 01.03.2010 um 17:43 schrieb Anthony Lander: > Hi Christian, >=20 > Just some small errors in the papers code. Try this instead: >=20 > (org-add-link-type "papers" 'org-papers-item-open) >=20 > (defun org-papers-item-open (url) > "Open the given uid, which is a reference to an item in Papers" > (shell-command (concat "open \"papers:" url "\""))) >=20 > 'org-add-link-type needs the name of the protocol, so in this case = 'papers', as that is the protocol part of the link. Also, there was a = missed bad variable reference: you renamed uid to url, but missed the = reference in the shell command accidentally. >=20 > Anyway, this code should work. Please let me know one way or another. >=20 > Best regards, >=20 > -Anthony >=20 > On 28-Feb-10, at 3:18 AM, Christian Zang wrote: >=20 >> Hi Anthony, >>=20 >> thanks a lot for your interest in that specific problem. >>=20 >> Am 27.02.2010 um 14:37 schrieb Anthony Lander: >>=20 >>> On 10-Feb-27, at 3:10 AM, Christian Zang wrote: >>>=20 >>>> Am 26.02.2010 um 22:50 schrieb Anthony Lander: >>>>=20 >>>>> Hmm... that's weird. Can you get papers.app to open the link from = the command line with 'open'? I figured it out the format with Together = by using the "copy item link" command. You could also try dragging the = link from the app to the terminal and see what it pastes. Or if none of = those work, you can try do some applescripting to try to figure it out. >>>>=20 >>>> In Terminal "open" works just fine with the papers://... link, and = so does pasting the link into a browser. I am a little bit confused, = maybe I should look into applescript. >>>=20 >>> Well, if 'open' works from the command line, then I suspect the bug = is somewhere else. If you send me the code you modified for papers.app = and a small org file with a link in it, I'll take a look at it to see if = there is something missing in the org setup. Also, which emacs and which = org versions are you using? >>=20 >> Please find attached the part of my .emacs where I put the modified = code, and an org-file with links. And: I am using the emacs 23.1.92 = build from http://emacsformacosx.com/ with org-mode 6.34trans. >>=20 >> Thanks! >>=20 >> Best, >> Christian >>=20 >> >=20