• 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: click "OK" button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: click "OK" button


  • Subject: Re: click "OK" button
  • From: Simon Brown <email@hidden>
  • Date: Fri, 28 Feb 2003 16:08:24 +0000

on 28/2/03 8:43, Dixon, Hugh - BUP at email@hidden wrote:

> Under OS9, Akua Sweets has "automate alerts after". I don't know if there's
> anything similar under X.

Neither do I, but what about scripting the dialog box to give up after x
seconds.

e.g.
display dialog "Test giving up" default answer "Textstring" [NO-BREAK]
buttons {"OK"} default button 1 giving up after 5
-- returns:
--> {text returned:"Textstring", button returned:"OK", gave up:false}
-- or:
--> {text returned:"Textstring", button returned:"", gave up:true}

if gave up of result or button returned of result is "OK" then
display dialog " do default stuff..." buttons {"OK"} default button 1
else
display dialog " do other stuff..." buttons {"OK"} default button 1
end if


-------------
Simon Brown
-------------
PPC 7500 + G3 card/OS z9.1 + Remote Access 4.02/CarbonLib 1.6/AppleScript
1.8.3/Smile 1.8.8
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Property immutability
  • Next by Date: Re: Script for auto mounting a remote server volume?
  • Previous by thread: RE: click "OK" button
  • Next by thread: Script for Eudora
  • Index(es):
    • Date
    • Thread