Re: can i 'store script' as stay open applet?
Re: can i 'store script' as stay open applet?
- Subject: Re: can i 'store script' as stay open applet?
- From: Richard Morton <email@hidden>
- Date: Thu, 6 Sep 2001 10:32:00 +1000
Denis G. Marcin, Lazarus Engineering Inc.'s message of 6/9/01 6:44 AM
contained:
>
but when i "store script" is saves it only as a compiled script. i've
>
read the dictionary entry for "store script" in Scripting Additions but
>
there don't seem to be any options to store the script as a stay-open app
>
like you can from the menu interface.
There may be other ways, but something I've used is to store the script
into an existing applet shell. For this situation, you could start by
manually creating an empty shell with the right settings. Make a copy of
the shell & then store your script in it.
[...]
>
...if these script applets used a parent property to inherit common
>
functions do they require less memory?
Loading a script object, as 'parent' or any other way, creates a local
copy of the object - it's akin to pasting the object into the script,
except that it's not visible. I imagine that the memory requirements
would be unchanged.
I also wonder whether it's the most efficient way of doing what you want.
What about having one stay open app that calls handlers as required?
This could be somewhat less messy if it meets your requirements. My
totally subjective experience is that having multiple AS applets running
causes crashes after a while. That could be just my bad coding, combined
with various applet shell bugs though.
Cheers,
Richard Morton
-- Great Lies of the Music Business: "The spotlight was on you during
your solo"