Re: Keyboard Input Menu position differs, has no name.
Re: Keyboard Input Menu position differs, has no name.
- Subject: Re: Keyboard Input Menu position differs, has no name.
- From: John Delacour <email@hidden>
- Date: Wed, 9 Apr 2003 21:19:27 +0100
- Mac-eudora-version: 6.0a14
At 9:07 am -0700 9/4/03, Matthew Galaher wrote:
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.
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
You need to _tell_ menu bar 1.
Unfortunately you will need the delay. UI scripting is a loose cannon.
tell app "System Events"
set current_process to process 1 whose frontmost is true
tell process "Finder"
set frontmost to true
tell menu bar 1 to click the second menu item in the menu "Input"
delay 1
end tell
set frontmost of current_process to true
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.