Automatic OK

Hi again. Is there an addition that will automaticaly “hit” the default button. For instance, if a dialog is going to be coming up whenever the script runs, I want the script to automatically hit the OK button so the dialog goes away. Thanks for your time.
-Rich

: Hi again. Is there an addition that will automaticaly
: “hit” the default button. For instance, if a
: dialog is going to be coming up whenever the script
: runs, I want the script to automatically hit the OK
: button so the dialog goes away. Thanks for your time.
: -Rich
Hi Rich
AutoType Osax comes to mind right away. It allows direct control of buttons in dialogs. I have a quiz however, are you wanting to control a script that your’re writing, or controling another application?
If it is just a script you’re wanting to control, then try this
display dialog “blah blah blah” with icon 1 giving up after 1

  • with 1 as the delay.
    If it is controlling another app, then use AutoType Osax. Link to our scripting additions is provided below, as well as the link to the authors website too.
    This should work fine for ya
    Ray~