From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Fwd: Mac OS Alias file links Date: Mon, 14 Apr 2014 21:58:35 -0400 Message-ID: References: <87ioqcfepi.fsf@bzg.ath.cx> <8738hfswq4.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZse4-0007Ez-S9 for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 21:58:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZsdz-0003nW-Eh for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 21:58:44 -0400 Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:61743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZsdz-0003nO-9m for emacs-orgmode@gnu.org; Mon, 14 Apr 2014 21:58:39 -0400 Received: by mail-qc0-f178.google.com with SMTP id i8so9874897qcq.9 for ; Mon, 14 Apr 2014 18:58:38 -0700 (PDT) In-reply-to: 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: "Charles C. Berry" Cc: Ivan Andrus , emacs-orgmode@gnu.org On 2014-04-14 at 20:21, Charles C. Berry wrote: > BibDesk has an archive of entries typically stored at > > ~/Library/Caches/Metadata/edu.ucsd.cs.mmccrack.bibdesk/*.bdskcache > > and the 'NS.data' element of Bdsk-File-1 seems to point to one element. > > The *.bdskcache file has a bplist and I guess the 'FileAlias' component > is what points to the pdf or whatever. Aha! I think this is essentially what you described in your last email when you said, >> 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. I guess that is how it is done. I think I can figure out how to do this much in elisp + a system language. The elisp side will be a good learning project. > One approach that sidesteps having to know the CoreFoundation.h stuff > is to use the BibDesk AppleScript capabilities. There is a model for > this at > > http://www.jonathansick.ca/adsbibdesk/ > > written in python, FWIW. Yes. The AppKit module is a nice interface from Python to the OSX system. I think I will likely write the non-emacs code using this, or AppleScript or Automator directly. -k.