Skip to main content
Notice removed Reward existing answer by clt60
Bounty Ended with user3439894's answer chosen by clt60
Notice added Reward existing answer by clt60
Bounty Started worth 100 reputation by clt60
Post Reopened by user3439894, clt60, nohillside
added 995 characters in body
Source Link
clt60
  • 8.3k
  • 9
  • 47
  • 73

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:

  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?

In one application I want redefine the CMD-N (build-in) shortcut (New Window) to run apple-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.

Is this possible?

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?

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?
added 196 characters in body
Source Link
clt60
  • 8.3k
  • 9
  • 47
  • 73

In one application I want redefine the CMD-N (build-in) shortcut (New Window) to run apple-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.

Is this possible?

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?

In one application I want redefine the CMD-N (build-in) shortcut (New Window) to run apple-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.

Is this possible?

In one application I want redefine the CMD-N (build-in) shortcut (New Window) to run apple-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.

Is this possible?

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?
Post Closed as "Not suitable for this site" by nohillside
Source Link
clt60
  • 8.3k
  • 9
  • 47
  • 73

Is possible to redefine application's shortcut?

In one application I want redefine the CMD-N (build-in) shortcut (New Window) to run apple-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.

Is this possible?