Re: Can't turn off screen savers in System Preferences
Re: Can't turn off screen savers in System Preferences
- Subject: Re: Can't turn off screen savers in System Preferences
- From: Philip Aker <email@hidden>
- Date: Tue, 03 Oct 2006 18:44:37 -0700
On 2006-10-03, at 16:24:43, Bill Cheeseman wrote:
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
This works for me. Weird because it looks like it's essentially the
same script.
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.desktopscreeneffect"
end tell
tell application "System Events" to tell application process "System
Preferences"
tell window 1
tell tab group 1
click radio button "Screen Saver"
tell group 1
tell slider 1
set value to 361.0
end tell
end tell
end tell
end tell
end tell
Philip Aker
email@hidden
_______________________________________________
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