<p>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?</p>

[{'answer_id': 69393, 'author': 'easeout', 'author_id': 10906, 'author_profile': 'https://Stackoverflow.com/users/10906', 'pm_score': 2, 'selected': True, 'text': '<p>Here is the script I came up with.</p>\n\n<pre><code>tell application "System Events"\n    tell (first process whose frontmost is true)\n        click menu "Help" of menu bar 1\n    end tell\nend tell\n</code></pre>\n'}, {'answer_id': 90610, 'author': 'Ken', 'author_id': 17320, 'author_profile': 'https://Stackoverflow.com/users/17320', 'pm_score': 2, 'selected': False, 'text': "<p>Alternatively, hit cmd-? and don't mess with the script. :-)  That puts key focus in the help menu's search field.</p>\n"}]
['https://Stackoverflow.com/questions/69391', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/10906/']