In OS X, in order to quickly get at menu items from the keyboard, I want to be able to type a key combination, have it run a script, and have the script focus the Search field in the Help menu. It should work just like the key combination for Spotlight, so if I run it again, it should dismiss the menu. I can run the script with Quicksilver, but how can I write the script?
views:
189answers:
2
+1
A:
Here is the script I came up with.
tell application "System Events"
tell (first process whose frontmost is true)
click menu "Help" of menu bar 1
end tell
end tell
Kevin Conner
2008-09-16 04:30:09
Reminder: you *might* need GUI Scripting enabled before that script will run.
millenomi
2008-09-16 13:17:18
+2
A:
Alternatively, hit cmd-? and don't mess with the script. :-) That puts key focus in the help menu's search field.
Ken
2008-09-18 06:57:22