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: "Denis G. Marcin, Lazarus Engineering Inc." <email@hidden>
- Date: Thu, 6 Sep 2001 15:06:45 -0400
Thanks to all of you for your suggestions! many thanks!
It looks like using a pre-existing applet with the correct properties,
i.e. stay-open & no splash, and replacing its contents with the new
contents and changing the name of the new-content file is the way to go.
i'll give it a try this evening (i hope).
To answer your question Paul -
the data used to create these applets is supplied on some irregular
schedule from a FMP export - so i want the creator application to read
the data and then create the necessary applets that will trigger
themselves at specific times based upon its properties. each applet will
go through a sequence of states during its lifetime with different
operations triggered in each state. i could perhaps "simply" store the
data in a list and scan the list from time to time. but what i thought
i'd do is take advantage of system resources, in particular the idle
timer to cause the applets to lie dormant until they need to be awakened.
there could be a few hundred of these applets waiting at any one time.
each also needs to respond to queries and requests. so i thought the
creation of stay-open scripts would be a "natural" application of the
feature.
but maybe not in which case i'll reimplement everything as a list and do
a lot of list processing.
thanks again to each of you for your time and talent to consider and
respond to my problem.
denis
>
At 1:29 +0200 6/09/01, Christopher Nebel wrote:
>
>
>You should be able to cheat. An applet is really a compiled script with
>
>a different file type and a bunch of extra resources (a little
>
>executable code, icons, and some application-related goo.)
>
>
>
>What you do is create a stay-open classic applet that has some trivial
>
>script in it. When you want to create a new applet, duplicate the
>
>skeleton to where you want it and then "store script" into it. Voila!
>
>(Disclaimer: I've never actually tried this, but it should work.)
>
>
This is exactly how Smile makes applets, so it should work. For more info
>
(in particular if you want to make background apps) check the "Script
>
Window" class script of Smile.
>
>
Emmanuel