Im am VERY new to scripting, and have only done some basic things with Automator so far. I was really hoping someone could help me write a scrip that locks my computer by bringing me back to the loging screen. Those of you who have multiple users on your mac, or those who just like to lock your computer will know that in System Preferences - Accounts - Login Options, you can select âEnable Fast User Switchingâ which even if you dont have multiple users, puts a little icon up the top right, next to the Spotlight icon, which has the feature âLogin WindonwâŚâ which when selected takes you back to the login window WITHOUT quitting your applications etc. In this way it is different from actually loggin out, but at the same time prevents any unwanted use of your computer.
What I would like to do is to write a script that executes this command so that I can use it with the Automator program, but to be honest I have no idea where to start?!!
Any help with this would be greatly appreciated!
Thanks in advance
Tim:)
Model: PowerBook 15"
AppleScript: AppleScript 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)
Iâm not 100% certain on the ins and outs of why it works, but what it is doing is running the script (application?) CGSession (located in the path stated) with the option suspend.
Yeah thanks for that, i followed the trail and found the âapplicationâ or scrip of whatever it is! Sorry to keep pestering but how did u find that? Have you made the same workflow, or is there a way of finding what scrips run differend system commands. I know how to find the parts of programs, but the actual OS is so complex?
I have system preferences (under the Apple in upper left corner) set up so that password is required to get past the screen saver (check box under security).
Next, set up a hot corner to turn on screen saver (system preferences, desktop and screen saver, hot corners⌠or dashboard and exposeâ).
When you get up to leave, drag the mouse into the appropriate corner⌠the screen saver will come on immediately, and then anyone wishing to access the computer will have to enter a password.