• 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
double clicking in a text field in a document of a url site using applescript system event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

double clicking in a text field in a document of a url site using applescript system event


  • Subject: double clicking in a text field in a document of a url site using applescript system event
  • From: Ronald Cross <email@hidden>
  • Date: Fri, 2 Jan 2004 23:26:14 -0700

Hi all, I need your help. I am trying to double click in a text field
in a document of a url site without any luck using an apple script with
the command:

property target_URL : "specific url site" where the specific url
site is of the form "htttp://www....etc"
open location target_URL

tell application "System Events"
try
tell text field 1 of scroll area 1 of group 2 of window "MomsWIN" of
application process "Safari"
set pos to {968, 233}
set siz to {188, 19}
set x to 968
set y to 233
set width to 188
set height to 19
click at {x + width / 2, y + height / 2} (In this example I have
"click at", but I can double click by just wrapping this command in a
repeat loop)
end tell
end try
end tell

This does not click at the proper location or it is not clicking at
all. I believe that it is not clicking the location at all.

I can click the site using an Extra Suite application that will
physically move the mouse to the location and then click using the
system event menu bar command. I would prefer to use the click command
from the system event since it doesn't involve moving the mouse through
a script. Any suggestions would be welcomed.




thanks
Ronald Cross
_______________________________________________
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.

  • Prev by Date: Re: Shared folders, WAS Checking for logged on guests
  • Next by Date: Re: Automating some preferences
  • Previous by thread: testing
  • Next by thread: Re: Automating some preferences
  • Index(es):
    • Date
    • Thread