DeckPilot
← All posts
•6 min read•By The DeckPilot Team

Can the iPhone Action Button Run Mac Shortcuts?

How to point the side button, Back Tap, or a Control Center control at a shortcut, what has to be on before that shortcut can reach a Mac, and when a labeled deck fits better.

On an iPhone 15 Pro or later, the side button replaces the Ring/Silent switch, and you can assign a shortcut to it. Open Settings, tap Action Button, swipe to Shortcut, tap Choose a Shortcut, and pick the one you want. A press and hold runs that assignment on the iPhone, and Silent Mode is what the button does until you change it. Leave Shortcut, Controls, or Accessibility selected without picking the option under it, and the button does nothing.

Back Tap and a Control Center control start shortcuts on the phone in the same way. Use them when you want to keep the side button on Silent Mode, or when the phone has no side button at all.

Two taps on the back of the phone

Back Tap runs a shortcut when you tap the back of the phone twice, or three times. Go to Settings, then Accessibility, then Touch, scroll down, and select Back Tap. Choose Double Tap or Triple Tap, scroll to the Shortcuts area, and choose a shortcut, then tap Back Tap to keep it. Double-tap or triple-tap the back of the phone and the shortcut runs.

The two gestures are separate, so double-tap can be one shortcut and triple-tap another, and neither has to match the side button. The back of the phone never shows a name, so the gesture is one you have to remember.

A control you can see

For a shortcut you can see, open Control Center, tap the control at the top left, tap Add a Control, and choose a Shortcut control. From iOS 18, that control can run any shortcut you have, or it can open an app. In iOS 18.2, App Shortcuts can also be added as controls in Control Center and on the Lock Screen.

An App Shortcut is one an app provides, so the Lock Screen list is smaller than every shortcut you wrote yourself. To swap one of those controls, touch and hold the Lock Screen, tap Customize, and tap the control you want to replace.

A double-tap that runs a shortcut on the Mac

A hold, a back tap, or a Control Center control only starts the shortcut you assigned on the phone. Muting the Mac, opening an app there, or running a shortcut that already lives on the computer has to be another step inside it.

In Shortcuts on the Mac, make the shortcut you actually want, and name it Mute when muting is the job. Keep questions out of it, because a shortcut that asks for input waits for someone at the Mac, and the phone cannot answer. The command is shortcuts run "Mute", with quotes around a name that contains a space. Run it once in Terminal on the Mac, so you know Mute finishes on its own.

Turn on Remote Login from the Apple menu, in System Settings, under General, then Sharing. Click next to Remote Login, turn it on, and note the command under Remote Login: On. It looks like ssh username@hostname, and the host can be a name or an address such as 10.1.2.3.

Limit Allow access for to your own user instead of every account on the Mac. Allowing remote login can make the Mac less secure, because anyone who reaches that address and knows the password gets a shell.

On the iPhone, add Run script over SSH to the double-tap shortcut, which sends a script to an SSH server. Use the user name and address from the Remote Login screen, and sign in with that account's password. Set the script to shortcuts run "Mute" and point the double-tap at this shortcut, so the gesture runs Mute on the Mac. If the Mac is off, or the address does not answer, the tap connects to nothing.

You can skip the shell when you only need a Focus to turn on, and the side button can be assigned to one. On the Mac, Share across devices stays on unless you turn it off. A Focus you change on the iPhone then changes on the Mac, when both devices use the same Apple Account.

On macOS 26, a shortcut can run when Do Not Disturb turns on. Put that Focus on the side button if you want the Mac shortcut to run too. Notifications stay silenced on the Mac until you turn Do Not Disturb off.

How far a gesture goes

The side button holds one assignment, and Back Tap holds a double-tap plus a triple-tap. Control Center can hold more shortcut controls, and from iOS 18.2 the Lock Screen can hold App Shortcuts. That is still a handful of triggers, and none of them show a label you can read while you work.

The SSH route needs the Mac on and reachable at the address you saved, with Remote Login still on. The Mac shortcut has to finish without a prompt, and when that address changes, the phone keeps the old one until you edit it. The phone also has to open the connection and wait for the command to finish. That wait makes the gesture a rough match for something you need in the same instant.

When a labeled deck is the better tool

These triggers fit when you have one job, or two, and you can remember which gesture is which. They get clumsy once you want mute, the camera, the app you open every morning, and a different set when you switch apps. A deck gives each action a label, and it can keep a page for the front app, on hardware keys or on a phone grid. Those phone and tablet apps are in the guide to free iPhone deck apps for a Mac.

If you would rather leave the phone in your pocket, the Dock and Shortcuts on the Mac already cover a few of those launches. That setup is in the guide to free shortcut buttons on the Mac.

A grid on the phone you already have

DeckPilot, the app we make, puts labeled buttons on an iPhone or iPad and sends each tap to the Mac. A button can open an app or send a keyboard shortcut, and the connection is local Wi-Fi or a USB cable. The Mac needs macOS 14 or later, and the phone or tablet needs iOS or iPadOS 17 or later. Pairing, from the install through the first deck, is in the iPhone setup guide.

The side button and Back Tap stay on the assignments you gave them in Settings. The grid is the screen you open when you want the name of the action in front of you.

Questions that come up

Can the Action Button open an app on my Mac?

It can open an app, or run a shortcut, on the iPhone. To open a Mac app, the shortcut has to reach the computer over Remote Login, or a shared Focus has to start one there. The settings for the button never point straight at an app on the Mac.

Do I need the Mac and iPhone on the same network?

For the SSH route, the phone has to reach the address under Remote Login. That address is often local, such as 10.1.2.3, so at home you usually want the same network. The Focus route skips the shell and only needs the same Apple Account, with sharing turned on.

Can Back Tap and the side button run different shortcuts?

Yes, the side button holds one action, and Back Tap can hold a different shortcut on double-tap and another on triple-tap.

Will the side button still silence the ringer?

It silences the ringer only while Silent Mode is the action you left on. Choosing a shortcut, a Focus, or any other action replaces the ringer toggle. A press and hold runs whatever you picked, so switch it back to Silent Mode when you want that toggle again.

Try DeckPilot

Turn your iPhone or iPad into a wireless control surface for your Mac.

Free download

Keep reading