• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Interrupting a script with an open dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Follow-Ups:
    • Re: Interrupting a script with an open dialog
      • From: Greg Strange <email@hidden>
    • Re: Interrupting a script with an open dialog
      • From: Phi Sanders <email@hidden>
  • Prev by Date: Re: List Header complaints
  • Next by Date: Re: Interrupting a script with an open dialog
  • Previous by thread: Re: List Header complaints
  • Next by thread: Re: Interrupting a script with an open dialog
  • Index(es):
    • Date
    • Thread