Is there a way to click “OK” on a alert message automatically. Right now I have a script that will check a link to a server every 5 minutes and if the server is not mounted, it will mount the server. The problem is if on the server side the computer crashes, then I get a message on the other computer stating the file server has closed down. I then need an applescript to automatically click “OK” so it can proceed with the mounting script.
Never mind.
On a mac, there is a small program available called “Okey Dokey” that you put in the control panels. It will automatically click the default button after x amount of time (you set the time in the program, and just restart the computer)
I think that Okey Dokey never made it to OS X. The fact that you asked this on the OS X forum is likely the reason that no one suggested Okey Dokey in the first place.