How to add keyboard shortcut for service menu actions / workflows?

Hi, How to add keyboard shortcut for service menu actions / workflows? I have created service menu actions for mac OS automation and these actions are available for 3rd party apps under service menu section. But the drawback here is every-time user has to go and click on it to perform that action. we can manually assign keyboard shortcut using system preferences -> Keyboard -> service menus -> add shortcut. Is there anyway to assign shortcut keys programmatically (via shell-script) for service menu actions? The goal here is to assign shortcuts via install-script instead of manually doing it.

Accepted Reply

<body><p>https://www.jamf.com/jamf-nation/discussions/22341/deploy-automator-workflow-file The above link helped me to fix this issue</p></body>

Replies

Can I assign shortcut keys programmatically? I want to assign shortcut keys into the entries in services section. All service actions are displayed in system preferences -> keyboard and I can add shortcuts manually.


but i want to add shortcuts programmtaically via shell script or Applescript or swift. Is it possible ?


<body><p>https://www.jamf.com/jamf-nation/discussions/22341/deploy-automator-workflow-file The above link helped me to fix this issue</p></body>