• 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: Tue, 7 Jan 2003 13:03:39 -0500

This script works but I'm having problems with the duration of the click. Actually it's clicking the correct box every time but unless I've manually clicked it before running the script it doesn't register. It may work correctly for you.

The second item is - there really needs to be a "wait" command in the System Events osax that can wait until an object's condition passes a test, i.e. "wait window 1 exists = true". I'm sure the former users of OneClick will understand exactly what I mean. With out a wait command the only solution seems top be a

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 bar 1 to tell menu "View" to pick menu item "International"
delay 4 -- needs to wait for window existence
tell window 1 to tell tab group 1
click radio button "Input Menu"
delay 4 --needs to wait for proper tab
tell scroll area 1 to tell table 1
repeat with x from 1 to count rows --"
if title of button 1 of row x is "Character Palette" then
click check box 1 of row x - click is too fast
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.

  • Follow-Ups:
    • Re: GUI Scripting and "International" Preferences
      • From: Emmanuel <email@hidden>
    • Re: GUI Scripting and "International" Preferences
      • From: jason bergman <email@hidden>
    • Re: GUI Scripting and "International" Preferences
      • From: John Stewart <email@hidden>
  • Prev by Date: Re: Launching scripts from DragThing
  • Next by Date: Re: Date Help - D&T stamp w Short dates
  • Previous by thread: Re: GUI Scripting and "International" Preferences
  • Next by thread: Re: GUI Scripting and "International" Preferences
  • Index(es):
    • Date
    • Thread