You’re welcome. I assume you know that to wake the screen from a script it is easiest to do this:
tell application "System Events" to keystroke space
This is the equivalent of hitting the spacebar, and if the screensaverengine is running, System Events gets the “space” character so it doesn’t get entered on whatever is on the desktop. There’s no need to quit the engine from a shell script.
Thank you very much! Along this same line, is there any way to have applescript lock down the computer and ask for a password?
With windows, I can simply call up a screen saver that requires a password to log back in, or I can use the following code: rundll32.exe user32.dll, LockWorkStation and it will bring-up the password protected screen to log-in.
So I guess I’m asking is there any way to call applescript that will bring up the Mac password prompt that will lock users out of the mac until they enter their password.