1

I was also looking for a bash method to test if user has locked the station.

This topic here shows that we can test if screen saver is active or not with bash: Check if Screensaver is Active using Mac Bash Script Command

I found this but this is also for screensaver: How can I detect if the screen is locked or screensaver is active from the Terminal in OS X 10.6?

Anyway to use bash to test if station is locked or not?

Thanks

Community
  • 1
  • 1
Noitidart
  • 35,443
  • 37
  • 154
  • 323
  • If bash isn't a deal breaker, it's possible [using Python](http://stackoverflow.com/questions/11505255/osx-check-if-the-screen-is-locked). – Fugue Dec 23 '14 at 15:21
  • Thanks @Fugue I won't mind and would defnitely appreciate it can you please share it. – Noitidart Dec 23 '14 at 20:36
  • @Fugue oh i saw that topic and did a javascript ctypes port of it, that has its issues so was looking for a a bash method. – Noitidart Dec 24 '14 at 06:27

0 Answers0