• 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
Re: GUI scripting: Beginner unable to fill a field text of a web page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI scripting: Beginner unable to fill a field text of a web page


  • Subject: Re: GUI scripting: Beginner unable to fill a field text of a web page
  • From: Bill Cheeseman <email@hidden>
  • Date: Tue, 13 Apr 2010 11:18:20 -0400

On Apr 13, 2010, at 11:02 AM, Vittorio wrote:

> 	select button 1
> 	click at button 1


I don't have time to rework your script again, but these commands aren't right. You should just use a single command: 'click button 1'.

Unlike the 'keystroke' command, most GUI Scripting commands should be addressed to a specific UI element, and that UI element does not need to be selected first (in fact, I don't think the 'select' command even works with a button). So, 'click button 1'.

The 'click at' command is different from the 'click' command. The 'click at' command takes a screen location in the form of a list, such as '{100, 200}', as its parameter, not a button or other UI element. You don't need 'click at' when you can get a reference to the UI element itself, as you can here. In fact, 'click at' is almost always useless because of the way Apple implemented it (it gets the UI element at the given location and then clicks that UI element, instead of sending a click to the given location).

--

Bill Cheeseman
email@hidden



 _______________________________________________
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

References: 
 >GUI scripting: Beginner unable to fill a field text of a web page (From: Victor <email@hidden>)
 >Re: GUI scripting: Beginner unable to fill a field text of a web page (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: 10.6 and Keychain...
  • Next by Date: Re: GUI scripting: Beginner unable to fill a field text of a web page
  • Previous by thread: Re: GUI scripting: Beginner unable to fill a field text of a web page
  • Next by thread: Re: GUI scripting: Beginner unable to fill a field text of a web page
  • Index(es):
    • Date
    • Thread