Sleep my Mac

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

Actions

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.

More From This Folder

Extra Details

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

More From The Library

Check quarterly taxes

Opens the Quarterly tab of the Tax page for QuickBooks Self-Employed so you can view and file your quarterly taxes (to avoid paying in one big lump-sum the year after).

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more