[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: |
Fri, 26 Feb 2010 21:32:52 +0100 |
Am 26.02.2010 um 18:18 schrieb Anthony Lander:
>
> On 10-Feb-26, at 8:57 AM, Christian Zang wrote:
>
>> I use org-mode for notes, and DEVONthink and Papers on the mac for storing
>> reference material. I want to add links to entries in DEVONthink and Papers
>> to my org-files, but org doesn't understand links like
>>
>> papers://doi/10.1038/463860a
>>
>> or
>>
>> x-devonthink-item://6EB3DF6A-9B0D-4D26-A7D3-86D0B589E455
>>
>> However, when I paste these links into my browser, the desired documents
>> open in the respective app.
>>
>> Is there a way to add these "protocols" to the protocols org can handle? I
>> looked into org-follow-link, but couldn't come up with a solution.
>>
>
> Hi Christian,
>
> Here is a snippet I use for opening Together links (another mac organizer):
>
> --------------------------------------------------
> (org-add-link-type "x-together-item" 'org-together-item-open)
>
> (defun org-together-item-open (uid)
> "Open the given uid, which is a reference to an item in Together"
> (shell-command (concat "open \"x-together-item:" uid "\"")))
> ---------------------------------------------------
>
> I suspect that this can be adapted for your purposes as well.
>
> Regards,
>
> --Anthony
Hi Anthony,
thanks for the snippet, it works perfectly with DEVONthink, but not with
Papers.app. I suppose because the Papers-link contains slashes and might not be
a proper uid...
Best,
Christian