Re: initializing loaded scripts
Re: initializing loaded scripts
- Subject: Re: initializing loaded scripts
- From: email@hidden (Michael Sullivan)
- Date: Fri, 3 May 2002 12:39:07 -0400
- Organization: Society for the Incurably Pompous
>
My head's going around in circles here, Arthur. What does this accomplish,
>
in the end? Which script has its properties set? The loaded script "Stuff to
>
remember"? Or the main script? What would be the advantage of doing this
>
within the property declaration of the main script?
The client (main) script ends up with a property (at compile time) that
contains an instance of the "Stuff to remember" object, with the
information that was given to the init routine.
Basically, it allows you to run certain code and have the results
embedded at compile time. I use this sometimes to avoid expensive
script object intializations for things I want to be call from OSAMenu.
I could also do this by passing commands to a stay-open applet, but that
involves AE overhead, that running from OSAMenu doesn't. Initializing
your script object as a property allows you to have your cake and eat it
too, so to speak.
Michael
--
Michael Sullivan
Business Card Express of CT Thermographers to the Trade
Cheshire, CT email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.