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

Open Lumy TV

Opens the app Lumy for Apple TV, which lets you see relevant times for sunrise and sunset so you can know when to take the best photos.

Get Shortcut »

Spell check

Corrects the spelling of the text shared as input or from your clipboard, then presents it a prompt to confirm before copying.

Get Shortcut »

Change text case

Takes the input from the Share sheet or clipboard, lets you choose from UPPERCASE, lowercase, Capitalizing Every Word, swapping to Title Case, or swapping to Sentence case, and copies it to your clipboard.

Get Shortcut »


Get way deeper into Shortcuts – become a member.