Interrupting a script with an open dialog
Interrupting a script with an open dialog
- Subject: Interrupting a script with an open dialog
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 02 Nov 2000 01:26:25 -0500
- Organization: [very little]
Scripts with open dialogs don't respond to quit events sent to them. Is
there a way around this?
I've got a script application that display a dialog (via Dialog
Director) that sits on the desktop all the time. When its single button
is clicked, the dialog goes away, the script calls the run handler in
another script that's idling in the background, and then terminates.
This is fine, except that when the user tries to shutdown or restart he
is blocked by the open dialog's causing the script to ignore the
system's command that it shut itself down.
I can force it to quit with a Control-Command-Q, but I've found no way
to simulate that programmatically. Can anyone tell me how to get the
attention of a script with an open dialog?
Marc [11/2/00 1:25:22 AM]