I have a Mac running a shell script and that script sometimes stops because a modal dialog is thrown up. I am looking for doing something similar to Okey Dokey Pro, using AppleScript:
http://www.pure-mac.com/sys.html#okeydokey
Pressing the default button in modal dialogs after a time limit if the dialog pops up and stops the other script.
Okey Dokey Pro is not compatible with OS X and has not been upgraded as far as I can tell since 1997.
Is there an easy way to do this with AppleScript, or do you know of another utility that would do this that IS OS X compatible?
Would I just run the app and have the dialog appear and then launch AppleScript press the Record button in AppleScript press the OK button in the App and Stop button in AppleScript and then work on cleaning up the code and making sure the script would run during the time the Mac is running the other script?
Thank You,
Brad
Model: G4
AppleScript: 1.9.3
Browser: Internet Explorer 5.23
Operating System: Mac OS X (10.4)