Skip to main content
coreydaley.dev
Docs menu

Shortcuts on the Mac: the basics

A shortcut is a list of actions that run top to bottom, each one handing its result to the next. You build it in the Shortcuts app by searching for actions in the sidebar and dragging them into the editor, with no code. The same shortcuts run on Mac, iPhone and iPad, and on the Mac you can run them from Finder, the menu bar, Spotlight or Terminal.

This page builds a shortcut that resizes the photos you select in Finder to 1,600 pixels wide and saves them as JPEGs. I ran it on macOS 27.2 with Shortcuts 10.0; I made my copy as a shortcut file and opened it in the editor, so the steps below follow the editor’s labels rather than a click-by-click recording.

Build the resize shortcut

Shortcuts editor with Receive Images, Resize, Convert to JPEG and Save actions
  1. Open Shortcuts and choose File > New Shortcut. Name it, say, “Resize Images for Email”.
  2. Search the action list on the right for Resize Image and add it. Set it to Size, 1600 wide and Auto Height. Its input is the Shortcut Input.
  3. Add Convert Image and set the format to JPEG. It takes the resized image.
  4. Add Save File. With Ask Where to Save on, it asks for a folder each time.
  5. Open the shortcut’s details (the i button) and turn on Use as Quick Action with Finder checked. The shortcut then starts with Receive Images from Quick Actions, as in the screenshot.

With Size and Auto Height as above, the width is what’s set: a 2000×3000 portrait photo came out 1600×2400 in my test, so its long side is 2,400 pixels, not 1,600. Resize Image also has a Longest Edge mode, which caps the long side instead.

Run it

From Finder. Select photos, then use Finder > Services in the menu bar; shortcuts set up as Quick Actions are listed under Shortcuts. When I ran it this way, Save File opened a folder picker, and the shortcut waited there until a folder was chosen. If you’d rather not be asked, turn off Ask Where to Save and pick a fixed folder in the action. The first time a shortcut saves into a folder like Desktop or Documents, macOS may ask you to allow it.

Right after I made it, the shortcut wasn’t in Finder’s right-click Quick Actions menu, only in Services. The Quick Actions menu has a Customize… item at the bottom for choosing what it shows; I didn’t change it for this test.

From Terminal. The shortcuts command runs any shortcut by name, takes files with -i, and writes the result with -o. For testing I used a version without the Save File step, so the result came back to Terminal:

shortcuts run "Resize for Email" -i ~/Pictures/beach.png -o ~/Desktop/beach-1600.jpg

A 4032×3024 PNG came out as a 1600×1200 JPEG. shortcuts list lists your shortcuts, and shortcuts view "Name" opens one in the editor.

From elsewhere. A shortcut’s details can also pin it to the menu bar or give it a keyboard shortcut, and Spotlight finds shortcuts by name. I didn’t test those for this page.

Do more than the built-in actions

  • Run AppleScript and Run Shell Script actions let a shortcut call a script, so you can mix Shortcuts with AppleScript or the command line. They’re switched off until you turn on Allow Running Scripts in Shortcuts’ Settings > Advanced. Until then the action says so in the editor, and running the shortcut from Terminal fails with “your Shortcuts security settings don’t allow you to run scripting actions.” Only turn it on if you trust the scripts in your shortcuts, including ones you add from other people.
A Run Shell Script action showing that scripting actions are disabled
  • Apps add their own actions. The Apps section of the action list shows which ones your installed apps provide.
  • Shortcuts can run on their own, on a trigger such as a time of day or files changing in a folder. Automations covers every trigger on macOS 27 and how fast they fired in my tests; automations need macOS 26 or later.
  • The Gallery has ready-made shortcuts to start from.