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