On 4 Apr 2008, at 8:43 PM, Robin wrote:

> Hi,
>
> I am trying to set up my main bib file (which is kept in svn and
> sync'd across different machines) so that it is usable
> cross-platform...
>
> At the moment I have all files as bibdesk local files and I would like
> an automatic way to extract these paths (all relative to ~) and add
> them to each entry as a 'pdf' field, so that when I load the file in
> JabRef on another machine, I still have easy access to the files.
> Obviously the pdf files will be there and in the same place
> (directories synchronised with unison).
>
> The help hints that while the paths aren't human readable it is
> possible to extract them with applescript... Unfortunately I'm
> completely unfamiliar with that, so I was wondering if anyone could
> provide some pointers to get me started with what I want to do.
> Ideally I would like produce a script that does this for each entry,
> and then I could add it as an svn hook so I would never forget...
>
> Does this seem sensible? How do others approach this problem (sharing
> bib files across different platforms).
>
> I did find something on the BibDesk_Applescripts page to
> "automatically fill the Local-Url field from the first linked file"
> which sounds like it could be easily modified to do what I want (pdf
> field instead of local-url field), but when I downloaded it it was a
> binary file so I wasn't really sure where to start with making
> modifications (or even understanding how it works).

This is a compiled AppleScript file, which you can open and edit in  
Script Editor. It is a script hook, see the Help for more details on  
what a script hook is and how to install it.

>
> Also, from looking at the info there it seems that these scripts are
> run from the script menu within BibDesk - this would mean I couldn't
> add it as a svn hook. Is there a way to run an external script (ie
> "copy_files_to_pdf test.bib").
>

Those are ordinary scripts, not script hooks. It is possible to edit  
the script hook to make it into a normal script you can run. Or search  
this list for a link to an applescript that does basically the same,  
because this has been discussed at least twice now.

> Any pointers appreciated,
>
> Robin

Christiaan


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to