Touch and hold an app or shortcut. Drag that app or shortcut on top of another. Lift your finger. To add more, drag each one on top of the group. To name the group, tap the group, then tap Unnamed Folder. Type the name. Move apps, shortcuts, widgets & groups. Sep 17, 2018 A shortcut. Photo: Charlie Sorrel/Cult of Mac. They show up alongside workflows you create in Shortcuts app. You can record your own personalized phrase to trigger the shortcut via Siri. Jun 29, 2020 But the good news is that Mac users can also place shortcut icons of apps they use regularly. Want to know how? Read on How to place app shortcut icons on your Mac desktop. First off, launch a Finder window on your Mac. Click on Applications from the left side navigation. Here, we show you how to create shortcuts using aliases in OS X on your Mac. How to create an alias: Make a shortcut to a file, folder, app or disk on a Mac.
With the built-in Terminal app on your Mac, you can run a number of commands to execute various actions on your machine. From taking screenshots of your screens to renaming a whole bunch of files at once, Terminal commands cover a lot of things that you usually do on your machines.
The only thing that you may not find to be inconvenient is having to launch the Terminal app each time you want to run a command. What if there was a better and quicker way to run Terminal commands on a Mac?
Well, there is actually. In fact, there are multiple ways to run a Terminal command using a keyboard shortcut on Mac. You can assign your favorite key combination to your specific command, and pressing the combination will execute that command on your machine.
Use An App To Run Commands Using a Shortcut On Mac
The most easiest way to assign keyboard shortcuts to your commands is to use a third-party app called iCanHazShortcut. This app makes it a whole lot easier to assign any keyboard shortcut to literally any command on your Mac.
To configure the app, all you need to know is the keyboard shortcut you want to assign and the command that is to be executed.
Download the free and open-source app on your Mac and move it to the Applications folder. Launch the app once it’s installed.
When the app interface loads-up, you’ll be in the Shortcuts tab by default. On this screen, find the button with a + (plus) sign in it at the bottom and click on it to add a new shortcut.
The following screen lets you configure the shortcut as well as the command it needs to execute. Here’s what you need to enter in each of the fields on the screen.
Shortcut – put your cursor in this field and type in the shortcut you want to assign to the command.
Action – it’s an optional name you can assign to later find the shortcut in the list.
Command – enter the exact command you want to be executed here.
Workdir – if your command requires a specific directory as the work directory, select it here.
You can do a test run by clicking on the play icon at the bottom. Once you’re satisfied, click on the icon next to it and it’ll save the shortcut.
The Preferences tab in the app also has a few options you can customize. This should give you more control as to how the app works on your Mac.
From now on, whenever you press the specified keyboard shortcut, it’ll run your Terminal command.
If there are more than one commands to be executed, you can add those to the app as well. Shortcuts can be modified and even deleted as well if you’d like to do it.
Execute Commands With a Shortcut Using Automator
Automator also allows you to run your commands using a keyboard shortcut. First you need to create a service containing your command and then assign the service a keyboard shortcut.
Launch the Automator app on your Mac. When the new document screen appears, click on Service and select Choose.
On the following screen, search for the action named Run Shell Script in the actions list. When you find it, drag it over to the main pane on the right-hand side.
You’ll see a large white box beneath the newly added action. Enter in all the commands you want to execute in this box. Think of this box as a Terminal window where you type your commands.
When you’ve entered your commands, click on the File menu at the top and select Save to save your service. Enter a meaningful name for the service and hit Save.
Now that the service is created, it’s time to assign it a keyboard shortcut. To do so, click on the Apple logo at the top-left corner and select System Preferences. Choose Keyboard on the following screen.
Head to the Shortcuts tab and then select Services from the list on the left. Then find your service in the right-hand side list, click on it, and press the desired keyboard shortcut.
Your service will be assigned your chosen keyboard shortcut.
When you press this shortcut, it’ll run the service which in turn will execute your Terminal command on your Mac.
Use ActionShortcuts To Run Commands Using a Shortcut
ActionShortcuts lets you run more things than just traditional Terminal commands. It lets you run Apple scripts, workflows, services, and of course, the Terminal commands.
Unlike other methods, this app isn’t free and costs $2.99. You can use the 7 day trial period though if you want to try it out first.
The following shows how to run a Terminal command with a keyboard shortcut using this app.
Launch the TextEdit app on your Mac. Click on the Format menu and select Make Plain Text to remove formatting.
Enter all the Terminal commands you wish to execute in the file. Then save the file by clicking on the File menu and selecting Save.
In the Save As dialog box, enter any name for the file but make sure the extension is command. Hit Save to save the file.
Download, install, and open the ActionShortcuts app on your Mac. Click on the Open Scripts Folder button on the main interface.
When the folder opens, drag and drop your command file onto it. Get back to the app and you’ll see your file in the list. Click on the Record Shortcut button next to your file to assign a keyboard shortcut.
Once a shortcut is assigned, pressing the shortcut will launch the .command file containing your commands on your Mac.
If you’d like to add additional files for execution, you can do so by clicking on the app icon in your menu bar and selecting Open Scripts Folder. All the commands that are to be executed must be placed in this folder and the app will recognize them.
While macOS allows users to create their own keyboard shortcuts to perform functions in apps, there isn't a built-in way to launch the apps themselves using a similar maneuver. AppleInsider shows you one way to create app-launching keyboard shortcuts, using the included Automator utility.
Apple included a fairly simple way to create custom keyboard shortcuts within System Preferences, which can easily be used to produce shortcut combinations for app functions that do not already have one defined. While the Shortcuts settings also enables various other system functions to run, the extensive list simply doesn't have an option to run a user-defined app.
Mac App Shortcut
This doesn't mean it is impossible to launch an app by creating a shortcut, but handily it is possible to trigger something else that in turn can load an app. In this case, we will be creating a keyboard shortcut to trigger an Automator-produced event, which will open up the selected app.
First, we need to create an Automator service that, when prompted, will open our selected application.
Open Automator. It can be found in the Applications folder, accessible by selecting Go then Applications in the Finder menu or by using the keyboard shortcut Shift Command A.
If this is your first time in Automator, you should be presented by an initial window offering to start a new document, though if it doesn't appear, select File then New in the menu to start from scratch. At this point, select Service then the Choose button.
In the top section starting 'Service receives,' set the dropdown box to 'no input,' and check to make sure the second dropdown is set to 'any application.'
Click Actions in the top-right corner, scroll down the list of actions in the second column to find Launch Application, and drag it into the main workflow box to the right. This will add a new Launch Application section to the workflow box.
Select the application you want to open from the shortcut using the Launch Application dropdown box.
Select File then Save in the menu, enter an appropriate name for the command, and click Save. Close Automator.
Creating the shortcut
Mac Create Shortcut Folder
Select the Apple logo in the Menu, and select System Preferences then the Keyboard icon in the second row. Select the Shortcuts tab, which should be in the middle of the five tabs near the top of the window.
Mac Create Shortcut To App
Select Services in the left-hand column, then scroll down to the service with the same name as the command created in Automator. If the side tick isn't visible, click it before clicking the command, then click the Add Shortcut button that appears.
At this point, select the key combination you want to use to open the selected application and press the buttons at the same time. If macOS accepts the combination, it will then show the keyboard combination in the listing.
Close the System Preferences window and test out the keyboard command.
While this tip largely centers around opening an app, the same principles can be used to create keyboard shortcuts to do a multitude of tasks. If a sequence of events is set up in Automator and saved as a service, it can be assigned a keyboard shortcut, and could be used to perform multi-stage tasks with a single collective key press.
Also, be aware of setting a keyboard shortcut that may duplicate one that is already in use by another system function or app, in case they conflict with each other or fail to perform an action at all. The last thing you want is to go to the trouble of setting up a key combination that ultimately doesn't do what you want.
AppleInsider has affiliate partnerships and may earn commission on products purchased through affiliate links. These partnerships do not influence our editorial content.