Sleep my Mac

Sends a remote command to a Mac to go to sleep immediately.

Actions Used

shortcuts-action-icon-if.webp
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
shortcuts-action-icon-stop-this-shortcut.webp
Stop shortcut
Stops execution of the current shortcut and dismisses the shortcut on screen. No more actions will be run after this action.
shortcuts-action-icon-run-script-over-ssh.webp
Run Script over SSH
Runs a script on a remote computer over SSH.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Sleep%20my%20Mac
Open Shortcut deep link
shortcuts://open-shortcut?name=Sleep%20my%20Mac
AppleScript code
tell application “Shortcuts Events” run shortcut “Sleep my Mac” end tell

More From This Folder

More From The Library

Turn on KQED

Turns on my living room, turns off your alarm in case you’ve woken up before it, and softly plays the radio station on my HomePod.

Get Shortcut »

Toggle listening history

Asks you to pick a focus mode, then toggles the current Music Focus Filter setting for “Use Listening History” so you can switch whether or not to Use Listening History for a chosen focus with an existing filter. Works well as a Control in Control Center.

Get Shortcut »

Open Switch Control preferences

Opens the deep link into the Accessibility settings for Switch Control, which allows you to use your iPhone by sequentially highlighting items on the screen that can be activated through an adaptive accesssory. Other options include settings for Switches, Recipe, Scanning Style, Auto Scanning Time, Pause on First Item, Loops, Move Repeat, Long Press, Tap Behavior, Focused Item After Tap, and keyboard, switch stabilization, point scanning, audio, and menu items controls.

Get Shortcut »


Get way deeper into Shortcuts – become a member.