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.

Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
cregox
  • 5,944

1 Answers1

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

Lri
  • 42,502
  • 8
  • 126
  • 159