Re: lists as parameters between two scripts
Re: lists as parameters between two scripts
- Subject: Re: lists as parameters between two scripts
- From: Emmanuel <email@hidden>
- Date: Fri, 27 Jul 2001 11:59:39 +0200
At 7:49 +0200 27/07/01, email@hidden wrote:
>
>
Is it possible to pass a list(of folders on a disk) as a parameter
>
from one script to another using program linking only ?
This is one of the main properties of AppleScript: it is able to carry
references to / lists of things produced by applications which were not
even thought of when AS was designed. This is performed thru a sort of
universal description scheme for objects and actions.
For instance, to carry the "startup disk", a concept proprietary to Finder,
AppleScript codes something like :
fndr (for "Finder") - sdsk (for "startup disk").
Of course, other apps won't in general be able to cope with such
proprietary references: you'll need a Finder at the other end to understand
and use them.
For instance, unless you benefit of special coercions installed by
non-Apple scripting additions (or apps), the "choose from list theList ..."
should not work: you've got to create a list suitable for "choose from
list". Check the dictionary of "choose from list" (I suppose it requires a
list of strings). Only the Finder may be able to manage theList.
HTH, SIIDN
Emmanuel