[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Link-protocols
From: |
Christian Zang |
Subject: |
Re: [Orgmode] Link-protocols |
Date: |
Mon, 1 Mar 2010 20:03:50 +0100 |
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,
>
> Just some small errors in the papers code. Try this instead:
>
> (org-add-link-type "papers" 'org-papers-item-open)
>
> (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 "\"")))
>
> '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.
>
> Anyway, this code should work. Please let me know one way or another.
>
> Best regards,
>
> -Anthony
>
> On 28-Feb-10, at 3:18 AM, Christian Zang wrote:
>
>> Hi Anthony,
>>
>> thanks a lot for your interest in that specific problem.
>>
>> Am 27.02.2010 um 14:37 schrieb Anthony Lander:
>>
>>> On 10-Feb-27, at 3:10 AM, Christian Zang wrote:
>>>
>>>> Am 26.02.2010 um 22:50 schrieb Anthony Lander:
>>>>
>>>>> 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.
>>>>
>>>> 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.
>>>
>>> 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?
>>
>> 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.
>>
>> Thanks!
>>
>> Best,
>> Christian
>>
>> <papers_test.org><emacs_part.el>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Orgmode] Link-protocols,
Christian Zang <=