Chip Orange wrote:
thanks much Aaron for keeping me from banging my head against that wall!

What exactly does the "stop script" or "disable script" cause to happen for
the script?  I mean, is onShutdown triggered?  I should be able to use a
timer to keep trying, and that should allow onShutdown to fire.

Yes, OnShutdown is triggered.

As an aside, you shouldn't need to monitor OnQuit, since OnShutdown will also fire then if your script is running. OnQuit is more useful for external non-script COM clients, who don't get a ClientInformation object and thus can't get OnShutdown.

As a further aside, you also don't need to call StopScript inside the OnShutdown handler, because the OnShutdown handler is your notification that the script is already stopping. (In fact, calling StopScript causes OnShutdown to happen, so - depending on how we handled that - you could be causing an infinite loop.)

Reply via email to