• 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: initializing loaded scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: initializing loaded scripts (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: offset with spaces confusion
  • Next by Date: RE: applescript-users digest, Vol 3 #421 - 13 msgs
  • Previous by thread: Re: initializing loaded scripts
  • Next by thread: offset with spaces confusion
  • Index(es):
    • Date
    • Thread