1
vote
0answers
110 views

How to detect locked screen / login-session from a script?

I am looking a way for a script (either bash or AppleScript, doesn't matter) to detect whether the state of the screen or the user login session is locked or not (i.e. the user will need to type in ...
0
votes
1answer
4k views

How to lock MacBook with a keyboard shortcut? [duplicate]

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 ...