• 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:30:22 -0500

On Tuesday, Jan 7, 2003, at 13:03 America/New_York, John Stewart wrote:

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


My apologies to the list for the way this ended, I am at work, the phone rang, and I'm doing 6 things at once. Nuff said.

To continue - Without a wait command the only solution seems to be a processor intensive repeat loop or a time wasting delay command. I'm open to suggestions if anyone has any.

John
_______________________________________________
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: John Stewart <email@hidden>
    • Re: GUI Scripting and "International" Preferences
      • From: jason bergman <email@hidden>
References: 
 >Re: GUI Scripting and "International" Preferences (From: John Stewart <email@hidden>)

  • Prev by Date: Re: Date Help - D&T stamp w Short dates
  • Next by Date: Re: droplet
  • Previous by thread: Re: GUI Scripting and "International" Preferences
  • Next by thread: Re: GUI Scripting and "International" Preferences
  • Index(es):
    • Date
    • Thread