Kill the screen saver
Kill the screen saver
- Subject: Kill the screen saver
- From: "Timothy K. Wilkinson" <email@hidden>
- Date: Thu, 12 Sep 2002 09:55:13 -0400
I'm in a lab situation using OS X 10.1.5. I need to have machines log out
after a certain period of inactivity. I've got a Perl script running that
checks for the screen saver and if it's active it runs an AppleScript that
logs off the user. Works wonderfully.
Here's the kicker. I'm trying to give users warning that the machine is
about to log off so they can save work using a dialog box. The problem is
when the dialog box comes up the screen saver is still running and the user
can't see it.
I've tried things such as:
tell app "logout"
activate
end tell
tell app "ScreenSaverEngine"
quit
end
but nothing works. I've also tried:
Tell app "Finder"
set app "logout" to frontmost
end tell
no success.
Anyone have any ideas on who to kill the screen saver through AppleScript?
Thanks,
Tim Wilkinson
ITC-ACHS
University of Virginia
email@hidden
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.