On 20 Jan 2008, at 9:12 AM, Jeremy Van Cleve wrote:

> In previous versions of BibDesk, I have used the Will Auto File and  
> Did
>
> Auto File script hooks to run an applescript that abbreviated the
> journal name in publication so that Auto File could use the  
> abbreviated
> name when naming the file.  The Did Auto File script simply removed
> spaces from the filename.
>
> In the current version (1.3.13), it seems that the name Auto File will
> use is already set by the time that the Will Auto File hook is run, so
> abbreviating the journal name with this script hook has no effect on
> journal name used by Auto File.  Does anyone know if this is normal
> behavior for the new version?

It's certainly not as designed, we send the Will Auto File hook  
before moving the file. But I can imagine that the system delays  
sending you (or you receiving) the message at a later time.

But what makes you think this, i.e. how do you get the current file  
name? Note that auto file in 1.3.13 does not move the Local-Url field  
anymore, but instead works on the linked files (from the side pane).

> It appears that I can use the Add File or
> URL hook to abbreviate the journal name before Auto File sets a
> filename, but the nice thing about using Will and Did Auto File was  
> that
> one knew that when Auto File occurred, both scripts got run and that
> changes made to the publication by the first script could be undone by
> the second if necessary.
>
> Thanks
>
> Jeremy

Be aware that this is not guaranteed. If moving the file failed, only  
Will Auto File is send. I'm not even sure if the order in which you  
get them is guaranteed (there's a whole black box in between about  
which I know absolutely nothing). I'd strongly advice you not to  
change the field this way. I'd advice you to use %c instead of %f.

Christiaan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to