• 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: Timeout for display dialog?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timeout for display dialog?


  • Subject: Re: Timeout for display dialog?
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 17 Sep 2001 12:41:21 -0700

On 9/17/01 12:18 PM, Matthew Broms <email@hidden> wrote:

>Does the display dialog command have a time-out parameter? If not, is there
>any simple work-around for displaying a message and then the script
>continuing on if no one is around to respond?

Yes.

display dialog: Display a dialog box, optionally requesting user input
display dialog string -- the text to display in dialog box
[default answer string] -- the default editable text
[buttons list] -- a list of up to three button names
[default button number or string] -- the name or number of the
default button
[with icon number or string] -- the name or ID of the icon to display

[with icon stop/note/caution] --
or one of these system icons
[giving up after integer] -- number of seconds to wait before
automatically dismissing dialog
Result: dialog reply -- a record containing the button clicked and
text entered (if any)

And the result can tell you whether it gave up or not:

Class dialog reply: Reply record for display dialog command
Properties:
button returned string [r/o] -- name of button chosen (empty if
giving up after9 was supplied and dialog timed out)
text returned string [r/o] -- text entered (present only if default
answer9 was supplied)
gave up boolean [r/o] -- did the dialog time out? (present only if
giving up after9 was supplied)

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Re: Timeout for display dialog?
  • Next by Date: Re: can't get the folder of info for x -- solved
  • Previous by thread: Re: Timeout for display dialog?
  • Next by thread: Image file info?
  • Index(es):
    • Date
    • Thread