Lock screen

Uses AppleScript to press ⌘+⌃+Q to Lock the screen.

Extra Details

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

More From This Folder

Show LaunchPad

Activates the key code for F4’s native function, which triggers the LaunchPad feature that shows your app icons like an iOS Home Screen.

Get Shortcut »

More From The Library

Pick an Elgato Winner

For a given CSV file of exported entries from a Ti.to event, pick a random name and show it.

Built for my Elgato giveaway during the Shortcuts User Group meetup at WWDC’24.

Get Shortcut »


Get way deeper into Shortcuts – become a member.