From mboxrd@z Thu Jan  1 00:00:00 1970
From: Alan Schmitt <alan.schmitt@polytechnique.org>
Subject: Re: DevonThink links in org mode?
Date: Mon, 16 Jul 2012 14:48:49 +0200
Message-ID: <21AAF9D0-D643-4A43-A194-DC4025E398C9@polytechnique.org>
References: <704B38AF-434B-480D-B67D-6B94614F8BA6@polytechnique.org>
	<87394rhoyj.fsf@gnu.org>
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:43929)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <alan.schmitt@polytechnique.org>) id 1SqkjJ-0005L7-Ja
	for emacs-orgmode@gnu.org; Mon, 16 Jul 2012 08:48:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <alan.schmitt@polytechnique.org>) id 1SqkjI-0000AE-I1
	for emacs-orgmode@gnu.org; Mon, 16 Jul 2012 08:48:49 -0400
In-Reply-To: <87394rhoyj.fsf@gnu.org>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode Mode <emacs-orgmode@gnu.org>

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

> Hi Alan,
>=20
> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>=20
>> 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.)
>=20
> You want to check the "A.3 Adding hyperlink types" section of=20
> the manual:
>=20
>  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=