Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Treemont

macrumors newbie
Original poster
Apr 18, 2010
1
0
I am wondering if there is a way to close a dialog after, say, 20 minutes even if no button has clicked. Alternatively if there is a way for the script to continue after a certain amount of time even if the dialog box doesn't receive input.
 
Launch your script editor.

Open the scripting dictionary of Standard Additions.

Look at the reference for the 'display dialog' command (under the User Interaction section).

Note the 'giving up after' clause.
 
You can have any dialog box close after a number of seconds (if you haven't clicked a button already).

Code:
display dialog "Hello" giving up after 1200
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.