Applescript: wait and say yes to dialog

Hello,


I want a script to wait for a certain number of minutes then automatically say Yes to a dialog.


Can someone please give some suggestions, thanks.


Apologies if I posted it in the wrong forum. I can't figure out how to find any forum.

PowerMac, Mac OS 8.6 or Earlier, Sy7.0.1; 16 MHz, 2 MB RAM, 20 MB HD

Posted on Nov 1, 2016 9:45 PM

Reply
1 reply

Nov 2, 2016 4:56 PM in response to Asu

Hello


Perhaps something like this.


-- change the number of seconds till giving up as you see fit. Currently it is 3 seconds. set r to display dialog "Choose yes or no" buttons {"No", "Yes"} default button 2 giving up after 3 -- [sec] if r's gave up then set r's button returned to "Yes" return r's button returned


Regards,

H

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Applescript: wait and say yes to dialog

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