emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Zang <christian.zang@fh-weihenstephan.de>
To: Anthony Lander <anthonylander@yahoo.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Link-protocols
Date: Fri, 26 Feb 2010 21:32:52 +0100	[thread overview]
Message-ID: <AD5BA3AE-CD10-450A-9A99-D3DF69F9D3B4@gmail.com> (raw)
In-Reply-To: <FA5AB83B-645C-4950-AFE8-65B34E041911@yahoo.com>

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

  reply	other threads:[~2010-02-26 20:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-26 13:57 Link-protocols Christian Zang
2010-02-26 17:18 ` Link-protocols Anthony Lander
2010-02-26 20:32   ` Christian Zang [this message]
     [not found]     ` <C5C97495-256A-4E77-A771-64162AAE9424@yahoo.com>
     [not found]       ` <71467D6F-AFC1-41D1-98E1-769CEAC861BB@gmail.com>
     [not found]         ` <709E8EC5-5644-4A8D-A512-19BF3A7F4BEC@yahoo.com>
     [not found]           ` <1E6E90F1-CE8E-45E4-B420-10E2AF9BE493@gmail.com>
     [not found]             ` <2EC25EC8-DB09-44A0-90DE-7F394DBB0D34@yahoo.com>
2010-03-01 19:03               ` Link-protocols Christian Zang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AD5BA3AE-CD10-450A-9A99-D3DF69F9D3B4@gmail.com \
    --to=christian.zang@fh-weihenstephan.de \
    --cc=anthonylander@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).