Re: GUI Scripting and "International" Preferences
Re: GUI Scripting and "International" Preferences
- Subject: Re: GUI Scripting and "International" Preferences
- From: John Stewart <email@hidden>
- Date: Wed, 8 Jan 2003 04:38:05 -0500
The solution to this is to select the row before clicking it. I thought
clicking a UI element would select it but System Events 1.2 apparently
doesn't agree. This would seem to be something forgotten in it's
implementation. The version listed below seems to work every time now.
John
OS 10.2.3, AS 1.9, System Events 1.2 Beta
tell application "System Preferences" to activate
tell application "System Events" to tell process "System Preferences"
tell menu "View" of menu bar 1 to pick menu item "International"
delay 2 -- needs to wait for window existence
tell tab group 1 of window 1
click radio button "Input Menu"
delay 2 --needs to wait for proper tab
tell table 1 of scroll area 1
repeat with x from 1 to count rows
if title of button 1 of row x is "Character Palette" then
set selected of row x to true
click check box 1 of row x
exit repeat
end if
end repeat
end tell
end tell
end tell
_______________________________________________
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.