4

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 its credential to get back to her/his session).

This is different than detecting whether screen saver is on, which is already answered in https://stackoverflow.com/questions/1390123/, as active screen saver is not always the same as locked session.

Do you have any suggestion? Thanks!

  • How do you propose the script handle multiple users being logged in simultaneously? – bmike Sep 5 '13 at 17:15

You must log in to answer this question.

Browse other questions tagged .