Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 down vote accepted

tell application "System Events"
    try
        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! :) –  Cawas 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. –  Cawas 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. –  Cawas Mar 31 '11 at 20:13
    
@Cawas Did you try logging out and back in? –  ؘؘؘؘ 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! –  Cawas Mar 31 '11 at 20:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.