Re: Stay Open
Re: Stay Open
- Subject: Re: Stay Open
- From: Ken Dobson <email@hidden>
- Date: Tue, 02 Jan 2001 17:54:59 -0500
on 1/2/01 1:11 AM, email@hidden at
email@hidden wrote:
>
On 1/1/01 7:47 PM, "Stephen Swift (aka Burnum)" <email@hidden> wrote:
>
>
> Why would you want to save a script application and check the 'Stay Open'
>
> option. I've been trying to figure out some use for that.
>
> What does it do?
>
> Does it have anything to do with watching the actions on the computer or
>
> anything?
>
>
It takes several seconds for an applet to open every time, and some amount
>
of time to quit as well, which gets in the way if you need to call it
>
immediately again, or simply by holding up other events on the computer.
>
It's just like any application that way. If you want an instantaneous
>
response after first opening it, leave it open and call a handler in the
>
open applet for each successive time you need it, which could be many. It
>
will then do your bidding immediately, instead of after 4 or 5 seconds.
>
>
I was pleased to discover that the new 'on reopen' command handler in OS 9
>
works wonderfully for that purpose. It is not just a device for droplets. If
>
you call the 'active handler', the one that does the work, inside the reopen
>
handler, then you can just double-click the applet, or select it in the
>
Apple Menu, and it seems to run then just as fast as a compiled script in
>
OSA Menu or in an application with an internal scripts menu.
>
>
--
>
Paul Berkowitz
I use this simple stay open app in the startup items folder to thwart my
son's attempts to wake the dead with the mp3 player. It is doing exactly
what you assumed, watching the actions on the computer.
property WatchFor : "Audion"
--__--__--__--__--__--__--__--__--__--__--__--__--__--__--
on idle
list processes
if result contains WatchFor then
tell me
set volume 1
end tell
end if
return 15
end idle
BTW I've just upgraded to 9.04, where can I find documentation of the new
features/capabilties of AS?