Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add a shortcut to "About" for every software, just like most of them have CMD+, for entering preferences.

But this could as well be a question used for many other things, since I want to do it through either Automator, Script or just System Preferences, if possible.

Any hints on how to do this? Please, no third part solutions.

share|improve this question
up vote 2 down vote accepted

tell application "System Events"
        set a to name of process 1 where frontmost is true
        tell process a to click menu bar 1's menu bar item 2's menu 1's menu item 1
    end try
end tell

The same approach also works for Undo* and Redo* in most applications.

How to assign a shortcut for running an Applescript

share|improve this answer
Sounds lovely. I'll see if I can use this! :) – cregox Mar 31 '11 at 19:26
Lri, about your edit, by chance I've tried the exact steps you described there with Automator, but for some reason that's not working - I can't find the service listed either in Keyboard Services or any Application > Services. I'm trying to find out why. – cregox Mar 31 '11 at 20:08
All right, I just redid it once again and took care to paste it in the proper place (the first time I've replaced the on run part). Now the actual script isn't working. It just does nothing. – cregox Mar 31 '11 at 20:13
@Cawas Did you try logging out and back in? – user495470 Mar 31 '11 at 20:32
@Lri I have issues with logging out as I always have a lot of things open... Plus I wouldn't think it would be required in this case! But I'll try that soon enough. Thanks again! – cregox Mar 31 '11 at 20:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .