# How to: create automated commands and then give them a keyboard shortcut on a Mac

**URL:** <https://forum.devtalk.com/t/how-to-create-automated-commands-and-then-give-them-a-keyboard-shortcut-on-a-mac/7251>\
**Category:** macOS Chat/Discussions\
**Tags:** macos\
**Created:** [21 February 2021 20:02 UTC](https://forum.devtalk.com/t/how-to-create-automated-commands-and-then-give-them-a-keyboard-shortcut-on-a-mac/7251 "2021-02-21T20:02:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [21 February 2021 20:02 UTC](https://forum.devtalk.com/t/how-to-create-automated-commands-and-then-give-them-a-keyboard-shortcut-on-a-mac/7251/1 "2021-02-21T20:02:02Z")

</div>

Posting this for future reference 😁

- Open Automater \> `New` \> `Quick Action`

- Change `Workflow receives current` to `no input`

- Click on the `Record` icon

- Click on your app and then do what you want it to then click the `stop` button.

Once done, delete the first command (clicking on the app) and then save it. Then ensure you have given the app permission in your Mac settings via `Security & Privacy` \> `Acessibility` \> `Allow the apps below to control your computer`.

Then go to the app, and from the menu bar, under `Name of app` \> `Services` \> `Name you gave the action` click it to see if it works, if it doesn’t, then you can set up a custom keyboard shortcut for it 🤓

(To delete a quick action, delete the file from `.Library` \> `Services`)
