In this guide

Lock Screen

Turn the display off, which locks the Mac.

Action referenceChange

What this action does #

First, connect Mac in Services. Then open Actions → + → Mac and choose Lock Screen.

What a run does

Running or testing this action does something on the computer itself.

More about this action

Puts the display to sleep. The Mac locks if it asks for a password after the display sleeps (System Settings → Lock Screen).

Inputs to fill in #

This action has no input fields. You can name and save it after choosing the action.

What comes back #

In the action editor, open Output → Returned Value to choose fields for your shortcut. These are the response fields described by the app; a service may omit an optional field or return an empty list. JSON File contains the full response.

Returned fieldTypeMeaning
donebooleanTrue once the Mac has done it.

Run it from Shortcuts #

  1. Give the action a recognizable name and tap Save.
  2. In Apple Shortcuts, add Shortcutify’s Execute Action and select the saved action.
  3. Supply any Param or File slots you bound in the inputs, then run the shortcut.

If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.

Advanced reference #

Request, permissions, and identifiers

On the computer: pmset displaysleepnow, over a signed-in SSH session. No web request is made.

Action identifier: mac.lock-screen.v1

No additional per-action permissions are declared in the app’s catalog. The integration’s connection and account access rules still apply.

Mac setup reference