Thank you, Christiaan!
Sorry if the question was too trivial, I'm jus starting with Applescript.

The make command worked.

Now, I would appreciate if you could tell me how to "auto file" these linked
files... I have general rule in the Preferences such that the linked files
are moved to:

PDF/%Y/%A1%u0%e

I thought the so-added linked files would be "auto filed" when saving the
library, but it doesn't happen.

Many thanks again!


Miguel

2008/3/23, Christiaan Hofman <[EMAIL PROTECTED]>:
>
> linked files are a to-many property, not a to-one-property. You cannot
> simply use "set" to add an item to a to-many property. You need to use the
> "add" command. If the "add" command is not available (I'm not sure if it is
> supported in the last release) you should use the "make" command with a
> "with data" argument. Have a look at the sample script to see how to do it.
> Christiaan
>
> On 23 Mar 2008, at 11:36 AM, Miguel Ortiz-Lombardía wrote:
>
> Hi,
>
> I'm writing an applescript that will look for pdf files in my quite
> disordered collection that may correspond to a particular publication in a
> library.
> My question is:
> Provided I find an appropriated pdf, can I have it linked to the selected
> publication from within the applescript?
>
> I'm trying something like:
>
> set the linked file 1 of thePub to this_file
>
> but it fails with:
>
> Bibdesk has detected an error: NSInternalScriptError
>
> Thank you in advance!
>
>
> Miguel
> --
> http://www.pangea.org/mol/spip.php?rubrique2
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Je suis de la mauvaise herbe,
> Braves gens, braves gens,
> Je pousse en liberté
> Dans les jardins mal fréquentés!
>
> Georges Brassens
> -------------------------------------------------------------------------
> 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
>
>
>
> -------------------------------------------------------------------------
> 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
>
>


-- 
http://www.pangea.org/mol/spip.php?rubrique2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Je suis de la mauvaise herbe,
Braves gens, braves gens,
Je pousse en liberté
Dans les jardins mal fréquentés!

Georges Brassens
-------------------------------------------------------------------------
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