Sub topic 1
Meet the Shortcuts app and create your first shortcut
The Shortcuts app on macOS lets you chain small steps into an automation, with no code required. This chapter covers the app's layout and walks you through building, naming and running a three-step shortcut.
Prerequisites
This chapter assumes you can:
- Open apps from the Applications folder or Spotlight.
- Find your way around Finder and System Settings.
- Follow a step-by-step procedure.
You don't need Terminal or any programming experience yet. You need a Mac running macOS Monterey (12) or later, because earlier versions don't include the Shortcuts app.
What a shortcut is
A shortcut is a saved list of steps that run from top to bottom. Each step is an action, such as "Get Current Date" or "Show Result". Actions can pass their output to the next action, which is how a list of simple steps becomes useful. The next chapter covers that data flow in detail.
A tour of the app
Open Shortcuts from Launchpad, the Applications folder, or Spotlight (Command-Space, then type "Shortcuts"). The window has three main areas:
| Area | What it does |
|---|---|
| Sidebar | Lists your shortcuts by group: All Shortcuts, Quick Actions, Menu Bar, and any folders you create. It also links to the Gallery. |
| Library view | Shows your shortcuts as tiles. Click a tile's play button to run it, or double-click the tile to open it in the editor. |
| Editor | Opens when you create or edit a shortcut. The workflow sits on the left. The action browser sits on the right. |
The Gallery holds ready-made shortcuts from Apple. Opening one and reading how it is built is a good way to learn.
Create your first shortcut
You will build a shortcut that gets today's date, formats it, and shows it on screen.
- In the Shortcuts window, click the + button in the toolbar, or choose File > New Shortcut. An empty editor opens.
- In the search field at the top of the action browser, type "Current Date". Double-click the Current Date action to add it to the workflow. You can also drag it into place.
- Search for "Format Date" and add it. It appears below the first action, and its input is set to the Current Date result.
- Search for "Show Result" and add it as the third action.
- Click the shortcut's title at the top of the editor and rename it to "Today's Date".
- Click the Run button (the play icon) in the editor's toolbar.
A window appears with the formatted date. You have built and run a multi-step shortcut.
Adjust an action
Most actions have inline options. On the Format Date action, click the Medium date-format label and choose another style, such as Long or Custom. Run the shortcut again and the output changes. Selecting an action and pressing Delete removes it. Dragging an action by its title bar reorders the workflow.
Where shortcuts are stored
Shortcuts you create appear in the library under All Shortcuts. If iCloud syncing for Shortcuts is on in your Apple Account settings, the same shortcuts also appear on your iPhone and iPad. Shortcuts that use macOS-only actions may not run on those devices.
Common errors
- No action results appear. The shortcut may not have run. Check that you clicked Run in the editor toolbar, not only the tile in the library.
- An action shows a red warning or says it needs input. A previous action may be missing or deleted. Look at the action's input field and reconnect it to the right source.
- You can't find an action. Search by the action's name, or clear the search field and browse by category. Some actions only appear for apps you have installed.
- Edits don't seem to apply. Changes save automatically, but you should close the editor and reopen the shortcut to confirm the saved version.
Summary
You can now open the Shortcuts app, tell its sidebar, library and editor apart, and build a named shortcut from three actions. The next chapter looks at how output moves from one action to the next.
Exercise
You added Current Date, Format Date and Show Result to a new shortcut, but Show Result displays nothing useful. Name two places to look to find the problem.
Show answer
Check each action's input. Format Date should take the Current Date result as its input, and Show Result should take the Format Date result. Also confirm the actions are in the correct top-to-bottom order, since each action only receives output from the actions above it.