There are a bunch of ways to do this most involving starting the screen-saver, either though hot corners or via QuickSilver triggers. However, I'm not very happy with starting the screen-saver to lock the screen, so I found the shell command for fast user switching and use that instead. Here's the script:
You can execute this script (remember to
/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend
chmod u+xit first) via a keyboard shortcut by using QuickSilver triggers. Since it's easier to explain with screenshots, that's what I've done. Just remember that when you're selecting an item (shown in the last image), you need to hit '.' to clear the field so you can type in the path to your copy of
What you are doing is too much work.
Try this one instead
Sudhindra, that's the article that I started my research with. I'm using option 3, fast user switching.
I've tried all the other options but didn't like them much. The only additional thing I'm doing is enabling fast user switching via a keyboard shortcut.
I also found some other script to do this .. I am assuming even using your script the screen saver will come up, if configured such.
tell application "ScreenSaverEngine"
I came up with this method:
Post a Comment