• 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
UI Scripting, Safari and text field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UI Scripting, Safari and text field


  • Subject: UI Scripting, Safari and text field
  • From: "Timothy K. Wilkinson" <email@hidden>
  • Date: Thu, 08 Jan 2004 14:21:06 -0500

I'm trying to use the UI Scripting to set a text field of a web page to a
certain value.

Using PreFab's UI Browser I came up with this script:

tell application "System Events"
tell process "Safari"
set value of text field 1 of scroll area 1 of group 2 of window "Add
new user" to "some text"
end tell
end tell

This works on the surface. It puts the text into the field on the web page
and everything seems fine. However when you click on the field the text
disappears. If you don't select the field but just click the submit button
then a blank value is submitted.

What step am I missing to make that value stick in the web page?

Thanks,


Tim Wilkinson
ITC-ACHS
University of Virginia
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: UI Scripting, Safari and text field
      • From: Joshua See <email@hidden>
    • Re: UI Scripting, Safari and text field
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: QuickTime Thanks & Brightness
  • Next by Date: Re: UI Scripting, Safari and text field
  • Previous by thread: QuickTime Thanks & Brightness
  • Next by thread: Re: UI Scripting, Safari and text field
  • Index(es):
    • Date
    • Thread