On 10 Jun 2007, at 1:08 AM, Zvi Biener wrote:

> Dear BibDeskers,
> I'm trying to write some BD applescripts (for quicksilver
> integration, and export of linked files, which I'll post to this list
> as soon as they are done), but need some help.
>
> How do I read from the defaults plist the following options:
> 1) the file BD opens by default (if that option is saved)?
>

The pref key is "Startup Behavior", it's a zero-based integer.

> 2) the last opened file? Although I could find the appropriate key
> for this (but not for 1), since it contains two entries, the command:
>
> defaults read edu.ucsd.cs.mmccrack.bibdesk "Last Open FileNames"
>
> gives me more than I need. Is there a way to invoke "defaults" that
> narrows this down, or do I have to do some string manipulation myself?
>

defaults does not have an option to get items of an array, so you'd  
have to parse it yourself.

Christiaan

> Thanks,
> Zvi Biener



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to