Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to make a window or dialog close after a period of time?

For example:




display dialog "1 + 1" buttons {"0", "1", "2"} default button 3



I want this dialog to be closed if none of the buttons is clicked after 10 seconds. I searched n the internet and they said to put "giving up after 3"* . However it does not work



*3 is the number of seconds

Posted on May 24, 2015 2:56 AM

Reply
Question marked as Best reply

Posted on May 24, 2015 3:29 AM

display dialog "1 + 1" buttons {"0", "1", "2"} default button 3 giving up after 10

works for me. You might try being more specific about what you are doing and what "does not work".

2 replies

How to make a window or dialog close after a period of time?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.