auto Click Button
auto Click Button
- Subject: auto Click Button
- From: Oakley Masten <email@hidden>
- Date: Fri, 25 May 2007 12:05:30 -0700 (PDT)
On Thu, 24 May 2007 14:04:02 -0700
Michelle Steiner wrote
regartding Subject: Re: Auto Click Button
On May 24, 2007, at 12:39 PM, Oakley Masten wrote:
> Why doesn't this work?
>
> tell application "Finder"
> activate
> display dialog "Well, what do you want?"
>
> delay 2
>
> tell application "System Events" to click "OK"
>
> end tell
Because the script is halted at the dialog line, and
never gets to
the delay line.
Regardless, it's not needed.
Use this instead:
display dialog "Well, what do you want?" giving up
after 2
-- Michelle
Thanks Michelle
You are correct. It would never get to the delay.
Obviously, I did not ask my question correctly.
What I wanted to know was how do I get applescript to
push buttons on applications that it is monitoring?
aka Choosing an answer in a display dialog box or
entering a number in a box and then choosing the "OK"
button? in a finder window or an App window.
Thanks
Oakley
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden