Possible Duplicate: Is there a quick way to lock my Mac? I am familiar with using Automator, but I do not know what code should be used to accomplish the feature. Can anyone provide the ...
I am looking a way for a script (either bash or AppleScript, doesn't matter) to detect whether the state of either the screen or the user login session is locked or not (i.e. the user will need to ...