Keyboard Input Menu position differs, has no name.
Keyboard Input Menu position differs, has no name.
- Subject: Keyboard Input Menu position differs, has no name.
- From: Matthew Galaher <email@hidden>
- Date: Tue, 8 Apr 2003 08:54:36 -0700
Can anyone help me with a way to call the "Input menu" in menu bar 1
regardless of what application is running? I wish to have a script that
runs with on idle and clicks the menu item 2 of the keyboard input menu
every half hour to make sure it hasn't changed. The UI Element
Inspector shows the menu name as "" since it appears to be an image.
I've tried 'last menu item of menu bar 1' and 'get count of menu items
of menu bar 1' but with no luck.
The following is what I'm currently using to accomplish my task, but
it's disruptive because it toggles applications and if someone is
working on the computer it's disorienting. My real answer would be a
way to check the state of the settings and only click if the keyboard
layout had changed, but blindly clicking it every half hour would work.
Thanks for any suggestions.
--first two lines for testing
delay 2
tell application "Safari" to activate
tell application "System Events" to name of first process whose
frontmost is true
set theApp to result as string
tell application "Finder" to activate
tell application "System Events"
tell process "Finder"
click menu item 2 of menu item 9 of menu bar 1
--delay 1
end tell
end tell
tell application theApp
activate
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.