Re: Stubborn checkbox
Re: Stubborn checkbox
- Subject: Re: Stubborn checkbox
- From: David C Andrews <email@hidden>
- Date: Wed, 09 Mar 2005 23:20:35 -0500
On Mar 8, 2005, at 12:45 AM, Theron Blount wrote:
I've written a script using system events that attempts to click on a checkbox implemented inside of a table view. The following code does not work:
activate application "System Preferences"
tell application "System Events"
tell process "System Preferences"
click checkbox 1 of row 1 of table 1 of scroll area 1 of splitter group 1 of tab group 1 of window 1
end tell
end tell
I have searched high and low, but to no avail, for a solution to this travail. This stubborn checkbox will not be clicked! Can anyone offer an idea?
__
Theron,
You may need to do some exploration to find out if all of those elements are indeed #1. For example, try something like this to see what may be what (from Date & Time within Date & Time):
tell application "System Events" to get class of UI elements of group 1 of tab group 1 of window 1 of process "System Preferences" --> {button, button, group, group, static text, button, button, combo box, «class swiB» [checkbox]} <--contains four buttons, and two groups
David A
PS: You can script time changes with vanilla Sys X AS.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden