emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode Mode <emacs-orgmode@gnu.org>
Subject: Re: DevonThink links in org mode?
Date: Mon, 16 Jul 2012 14:48:49 +0200	[thread overview]
Message-ID: <21AAF9D0-D643-4A43-A194-DC4025E398C9@polytechnique.org> (raw)
In-Reply-To: <87394rhoyj.fsf@gnu.org>

On 16 juil. 2012, at 14:26, Bastien wrote:

> Hi Alan,
> 
> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> 
>> Is there a way to tell org-mode to pass the resolution of this link to the
>> system? (For instance, if I do a "open
>> x-devonthink-item://700A651C-E395-462C-873A-13FC92035FBD" in a terminal
>> window, things work as expected.)
> 
> You want to check the "A.3 Adding hyperlink types" section of 
> the manual:
> 
>  http://orgmode.org/manual/Adding-hyperlink-types.html

Thanks a lot, that was most helpful. Here is what I ended up with, if it may help other people:

(org-add-link-type "x-devonthink-item" 'org-devonthink-open)

(defun org-devonthink-open (link)
	"Open the devonthink link."
		(start-process (concat "open " link) nil "open"
									 (concat "x-devonthink-item:" link)))

Alan

  reply	other threads:[~2012-07-16 12:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 11:51 DevonThink links in org mode? Alan Schmitt
2012-07-16 12:26 ` Bastien
2012-07-16 12:48   ` Alan Schmitt [this message]
2012-07-16 14:47     ` Bastien
2012-07-16 18:22     ` John Wiegley
2012-07-16 20:15       ` Bastien
2012-07-18  7:11       ` Alan Schmitt

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=21AAF9D0-D643-4A43-A194-DC4025E398C9@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=bzg@gnu.org \
    --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).