Lock my Mac

Lock a Mac remotely


Allows you to lock your Mac, start screensaver, or put your mac to sleep as long as your iOS device and Mac are both on the same WiFi.


In the dictionary in the shortcut, set the following:

  1. To set hostname, use up address of Mac if it is a fixed address (see Settings> Networks) or go to Settings > Sharing on your Mac? MacBook-Pro.local in the example below.

  2. You must also set the username you use to login to the Mac with. If you don’t know what that is, go to terminal and look at the prompt. It usually will before the "%".

  3. Set the password of the Mac you want to login to.

If you don’t configure these things, the shortcut can’t login to your Mac.

Related Shortcuts

No third party Updater Shortcut required.

This shortcut has an integrated update mechanism called Embed-a-Update. Thanks to the embedded updater, it does not require any external updater shortcut. The shortcut checks for updates itself, so you'll never miss an update and it is super fast.

If this Shortcut doesn’t work as expected, you have suggestions, or an idea to improve it, let me know!

Latest Release Notes

2.0 - July 25, 2021, 12:29 a.m.

* Updated commands for Big Sur (may cause older macOSs to break. If so, let me know and I will see if I can address that)
* Allow for more than one Mac
* Added options so you can Sleep, Lock screen, or Screensaver

Version history