• 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 and "International" Preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: GUI Scripting and "International" Preferences (From: John Stewart <email@hidden>)

  • Prev by Date: Re: Keynote, is it scriptable?
  • Next by Date: Re: Keynote, is it scriptable?
  • Previous by thread: Re: GUI Scripting and "International" Preferences
  • Next by thread: Re: GUI Scripting and "International" Preferences
  • Index(es):
    • Date
    • Thread