Applescript OK button
What do I need to edit this to click the OK button?
display dialog "Say something" buttons {"OK"} default button "OK"
delay 10
Thanks
MacBook Pro Retina
You can make a difference in the Apple Support Community!
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
What do I need to edit this to click the OK button?
display dialog "Say something" buttons {"OK"} default button "OK"
delay 10
Thanks
MacBook Pro Retina
Use:
display dialog "Say something" buttons {"OK"} default button "OK" giving up after 10
Note that if the script checks what button was pressed later, it'll be an empty string instead of "OK".
(181237)
Use:
display dialog "Say something" buttons {"OK"} default button "OK" giving up after 10
Note that if the script checks what button was pressed later, it'll be an empty string instead of "OK".
(181237)
I am not sure I get your empty string comment!
Virtually 100% of the time the button is NOT pressed. I have noticed that the AppleScript icon will bounce in the dock with the name of this script and then continue on if I press the AppleScript icon in the dock.
Is there a way around this? No buttons and giving up after 10 sec is ok as well so long as the script runs uninterrupted.
Thanks again for your patience.
reset PRAM and safe boot fixed it
Applescript OK button