macOS lock with shortcut (Windows+L)
- You download the "Lock.scpt" and open it with Script-Editor.
- You export the Script as Lock.app and copy that to Programms.
- Run Automater and create a new document and there an new service.
- Select Run Programm an select the "Lock.app" then safe that.
- Open Settings -> keyboard -> Short Cuts -> Service -> Lock.App -> โงโL
- Press the short cut and it works fine.
do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend"