Quantcast
Channel: How can I detect if the screen is locked or screensaver is active from the Terminal in OS X 10.6? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Ned Deily for How can I detect if the screen is locked or...

A bit of a kludge but you can easily query the System Events background app via Apple Events to tell if a screen saver is running. For example:$ osascript -e 'tell application "System Events"' \> -e...

View Article


Answer by Martin Marconcini for How can I detect if the screen is locked or...

Just out of curiosity, have you tried ssh'ing into the OS X machine and compare the process list before/after the screen saver / lock ?That's what I'd try.

View Article

How can I detect if the screen is locked or screensaver is active from the...

Due to the new limitations of Kerberos in OS X 10.6, I'm working on a script that offers similar functionality to what used to be available in 10.5. Essentially it parses the klist output to see if...

View Article
Browsing all 3 articles
Browse latest View live