Pages

Sunday, May 15

Locking your screen on OSX

Friend of mine tipped me to this (thanks @englishlfc).  People have asked me in the past about this, basically, how to lock your screen (Start your screen saver) using a keyboard shortcut on OSX.

On Windows you can mash Windows-L and it will lock your screen.  Or Ctrl-alt-del, enter.  (God it pains me to watch people hit Ctrl-Alt-Del and then MOUSE to "Lock Screen"... GRR!!)

My solution in OSX has always been to set my bottom left corner of my screen to "activate screen saver".  Then I could just move my mouse to that corner, and viola, locked screen.

But @englishlfc was looking to the same thing with the keyboard, and there are a ton of ways of doing it in Applescript, but it's even easier with Automator.

So, go open Automator, and select new "Workflow".

You'll get a blank screen that looks like this:


Select "Utilities on the left, and then find "Start Screen Saver" in the next column:


Drag "Start Screen Saver" over to the right:


That's it.  Save it as an "Application" in Documents or Applications.

Then go to System Preferences and set up a Keyboard Shortcut to activate that App:


Simple.

I did it a bit differently.  I used Alfred's new "Global Keyboard Shortcut" functionality to activate the app.


Done.

Maybe this'll help someone.

Want to know how to do this in Applescript?



Please leave comments below.

No comments: