Re: Screen saver scripting
Re: Screen saver scripting
- Subject: Re: Screen saver scripting
- From: Gnarlodious <email@hidden>
- Date: Thu, 13 Oct 2005 14:53:50 -0600
- Thread-topic: Screen saver scripting
Title: Re: Screen saver scripting
Entity Russell McGaha spoke thus:
> I've got another question about scripting the screen saver.
> I need to turn the screen save off for part of the day,
> then turn it back on for the rest; does anyone know if this is
> possible??
Seems very likely. This script locks the screen, but use it to get you started.
set previousState to do shell script "defaults -currentHost read com.apple.screensaver askForPassword "
do shell script "defaults -currentHost write com.apple.screensaver askForPassword 1"
tell application "ScreenSaverEngine" to run
do shell script "defaults -currentHost write com.apple.screensaver askForPassword " & previousState
-- Gnarlie's Applescript page:
http://Gnarlodious.com/Apple/AppleScript/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden