• 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
Re: Interrupting a script with an open dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interrupting a script with an open dialog


  • Subject: Re: Interrupting a script with an open dialog
  • From: Greg Strange <email@hidden>
  • Date: Thu, 09 Nov 2000 15:00:13 -0600

on 11/2/00 1:26 AM, Marc K. Myers at email@hidden wrote:

> 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?

Have you tried changing the window style in DD to a palette instead of a
standard dialog? Palettes tend to allow you to Cmd-Tab through your
applications and don't hogtie the Finder.

Greg Strange

--
...[Zeus] has led us on to know,
that Helmsman lays it down as law
that we must suffer, suffer into truth.
-Aeschylus, Agamemnon


References: 
 >Interrupting a script with an open dialog (From: "Marc K. Myers" <email@hidden>)

  • Prev by Date: Re: List Archives now available
  • Next by Date: Re: Coerce from string to application command
  • Previous by thread: Re: Interrupting a script with an open dialog
  • Next by thread: Re: Interrupting a script with an open dialog
  • Index(es):
    • Date
    • Thread