Skip to main content
3 of 3
added 995 characters in body
clt60
  • 8.3k
  • 9
  • 47
  • 73

Is possible to redefine application's shortcut?

In one application (SomeApp) I want redefine the CMD-N (build-in) shortcut (New Window) to run automator-script.

So, when I press CMD-N it should run my Automator apple-script instead of the New Window built-in command, but exactly in one application only.

Already done:

  1. I opened the Automator and created a simple service.
  2. no input in the SomeApp.
  3. It contains the run shell script action
  4. and the script is open -a SomeApp http://www.google.com (opening an URL)
  5. of course, the script itself is working flawlessly (i know how to using Automator)
  6. Tested, saved, named it as: SomeAppUrl
  7. In the SomeApp the CMD-N is currently used for the "New Window" (builtin) command.
  8. I want replace this already existing shortcut with the my Automator service described above.
  9. I know the system preferences -> keyboard -> shortcuts

BUT

  • in the services i could choose a shortcut - but it will be a global
  • or in the App shortcuts could choose for the given SomeApp the "New Window" and assigning a new shortcut

But no one REPLACING the current (built-in) Cmd-N with my SomeAppUrl Automator service ONLY in the SomeApp.

Is this possible? If yes, could please someone add some hints?

EDIT

For the fast-commenters:

  1. The current state: the CMD-N opening a "New window".
  2. The final state: the CMD-N should run my own Automator script...
  3. Is this possible?
clt60
  • 8.3k
  • 9
  • 47
  • 73