• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
auto Click Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Multiple copies of Citrix running
  • Next by Date: Re: Multiple copies of Citrix running
  • Previous by thread: Re: Auto Click Button
  • Next by thread: RE: auto Click Button
  • Index(es):
    • Date
    • Thread