1

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.

1 Answer 1

2

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

11
  • Sounds lovely. I'll see if I can use this! :)
    – cregox
    Mar 31, 2011 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, 2011 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, 2011 at 20:13
  • @Cawas Did you try logging out and back in?
    – Lri
    Mar 31, 2011 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, 2011 at 20:39

You must log in to answer this question.

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