Skip to main content
added 28 characters in body
Source Link

I have a simple one liner for this. It uses System Events to send the default key combo for the Lock Screen command and works in all versions of OSX from High Sierra (10.13) on. Even Mojave! Though it will prompt for additional Security permissions for the App, in the newer OSX versions

tell application "System Events" to keystroke "q" using {control down, command down}

I have a simple one liner for this. It uses System Events to send the default key combo for the Lock Screen command and works in all versions of OSX. Even Mojave! Though it will prompt for additional Security permissions for the App, in the newer OSX versions

tell application "System Events" to keystroke "q" using {control down, command down}

I have a simple one liner for this. It uses System Events to send the default key combo for the Lock Screen command and works in all versions of OSX from High Sierra (10.13) on. Even Mojave! Though it will prompt for additional Security permissions for the App, in the newer OSX versions

tell application "System Events" to keystroke "q" using {control down, command down}
added 227 characters in body
Source Link

I have a simple one liner for this. It uses System Events to send the default key combo for the Lock Screen command and works in all versions of OSX. Even Mojave! Though it will prompt for additional Security permissions for the App, in the newer OSX versions

tell application "System Events" to keystroke "q" using {control down, command down}

I have a simple one liner for this

tell application "System Events" to keystroke "q" using {control down, command down}

I have a simple one liner for this. It uses System Events to send the default key combo for the Lock Screen command and works in all versions of OSX. Even Mojave! Though it will prompt for additional Security permissions for the App, in the newer OSX versions

tell application "System Events" to keystroke "q" using {control down, command down}
Source Link

I have a simple one liner for this

tell application "System Events" to keystroke "q" using {control down, command down}