Re: Property Parent : load script (Changing File)???
Re: Property Parent : load script (Changing File)???
- Subject: Re: Property Parent : load script (Changing File)???
- From: Jason Bourque <email@hidden>
- Date: Wed, 16 Jan 2002 20:03:54 -0500
Sorts? I meant "Sort of a library" just a saying.
And I tried a Library Server but it fell apart at
Tell app "Script1" to Tell app "Script 2" to tell app "Library Server" to
useAHandler()
I think it has a depth problem.
Thanks,
Jason Bourque
On 1/16/02 7:05 AM, "Serge Belleudy-d'Espinose" <email@hidden> wrote:
>
>
You don't have to use run script. Just design a handler that will load the
>
newest version of your library, then set your property to the handler's
>
result.
>
>
--
>
>
to findNewestHandler()
>
set newestHandler to missing value
>
>
-- stuff to find the newest handler and load it as newestHandler
>
>
return newestHandler
>
>
end findNewestHandler
>
>
property parent : findNewestHandler()
>
>
--
>
>
Also make sure to put the handler definition _before_ the property or your
>
script won't compile.
>
>
Note #1: are you sure you want to load the library at compile time? sure, it
>
helps for the parent thing but you will have to compile your script again
>
everytime the library changes. If you forget about the parent, there are other
>
approaches based on applications acting as library servers, that allow for
>
real-time library change.
>
>
Note #2: what are the sorts you want to put in that library?