In one application (SomeApp
) I want redefine the CMD-N
(build-in) shortcut (New Window) to run appleautomator-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:
- I opened the Automator and created a simple
service
. no input
in theSomeApp
.- It contains the
run shell script
action - and the script is
open -a SomeApp http://www.google.com
(opening an URL) - of course, the script itself is working flawlessly (i know how to using Automator)
- Tested, saved, named it as:
SomeAppUrl
- In the
SomeApp
theCMD-N
is currently used for the "New Window" (builtin) command. - I want replace this already existing shortcut with the my Automator service described above.
- 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 givenSomeApp
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:
- The current state: the
CMD-N
opening a "New window". - The final state: the
CMD-N
should run my own Automator script... - Is this possible?