From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: Fwd: Mac OS Alias file links Date: Mon, 14 Apr 2014 17:42:30 +0000 (UTC) Message-ID: References: <87ioqcfepi.fsf@bzg.ath.cx> <8738hfswq4.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZkuP-0005Fh-8I for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 13:43:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZkuH-0000I2-Jw for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 13:43:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:56504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZkuH-0000Hr-Cl for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 13:42:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WZkuB-00070L-Pl for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 19:42:51 +0200 Received: from 172-7-166-26.lightspeed.sndgca.sbcglobal.net ([172.7.166.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Apr 2014 19:42:51 +0200 Received: from ccberry by 172-7-166-26.lightspeed.sndgca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Apr 2014 19:42:51 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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: emacs-orgmode@gnu.org Ken Mankoff gmail.com> writes: > > > On 2014-04-14 at 12:26, Achim Gratz wrote: > > Ken Mankoff writes: > >> Aliases are a type of links ("ln" on linux, "shortcut" on Windows > >> "alias" on OS X (OS X of course also supports "ln")). The difference > >> between an OS X alias and "ln" is that if the target is moved, the OS > >> X alias still points to it, and double-clicking on an alias (or > >> issuing the "open" command in a terminal) will open the target, > >> wherever it is. > > [...] > In my fantasy, the link wouldn't be to an alias file, it would *contain > the alias* the way the BibDesk field does. Therefore C-o on an "alias:" > link would require extra code: Decode the alias, then pass it off to the > system. > The point of using an alias rather than a filename or the name of a symbolic link that points to the file is that it inherits the property of Mac OS X aliases that moving the file does not break the alias --- it still points to file. For this to work as you fantasize, you would need to enable the Finder application to modify the part of the *.org file that encodes the alias when you change the location of the aliased file just as the Finder does to the alias when the location of the aliased file is modified in the Finder. That is a heavy lift. OTOH, writing an AppleScript to make an alias in a folder that is never moved, writing elisp to call that script and then make an org-mode link to the alias just created might work for you. HTH, Chuck