• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Property Parent : load script (Changing File)???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property Parent : load script (Changing File)???


  • Subject: Re: Property Parent : load script (Changing File)???
  • From: "Serge Belleudy-d'Espinose" <email@hidden>
  • Date: Wed, 16 Jan 2002 13:05:38 +0100

At 20:44 -0500 15/01/02, Jason Bourque wrote:

>At compiling the property it finds the newest version of a script that
>begins with "HandlerLib " in a specified folder ((path to startup disk as
>text) & "Script Handlers:").

>Property parent : run script "a finder script that finds the script in
>question to load and the resulting value of this runscript is a loaded
>script."

>Any other ideas or refinement on mine?

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?


Serge
--
\\//\//\// Serge Belleudy-d'Espinose Institut Jacques Monod
// // // http://www.ijm.jussieu.fr/ Universite Paris VII - Jussieu
//\//\//\\


  • Follow-Ups:
    • Re: Property Parent : load script (Changing File)???
      • From: Jason Bourque <email@hidden>
References: 
 >Property Parent : load script (Changing File)??? (From: Jason Bourque <email@hidden>)

  • Prev by Date: Re: [rant] Upgrade to 9.2, any advice?
  • Next by Date: Quark EPSing Question
  • Previous by thread: Property Parent : load script (Changing File)???
  • Next by thread: Re: Property Parent : load script (Changing File)???
  • Index(es):
    • Date
    • Thread