Can't turn off screen savers in System Preferences
Can't turn off screen savers in System Preferences
- Subject: Can't turn off screen savers in System Preferences
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 03 Oct 2006 19:24:43 -0400
- Thread-topic: Can't turn off screen savers in System Preferences
I'm trying to set the "Start screen saver" slider in the Desktop & Screen
Saver pane of System Preferences to Never using GUI Scripting. I see the
slider's value indicator move to the Never position, but when I quit System
Preferences and re-launch it, the slider reverts to the old slider setting.
Has anyone found a solution for this?
Here's my script (beware the screen wrap in line 1), after activating System
Preferences:
tell application "System Preferences" to set current pane to pane id
"com.apple.preference.desktopscreeneffect" -- Screen Saver
tell application "System Events"
tell process "System Preferences"
tell window 1
click radio button "Screen Saver" of tab group 1
tell slider 1 of group 1 of tab group 1 to set value to 361.0
end tell
end tell
end tell
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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