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 21:50:03 -0700
On 2006-10-03, at 20:25:09, kai wrote:
This works for me. Weird because it looks like it's essentially
the same script.
Pretty much. The only real difference is the activate command.
Unfortunately, that doesn't fix the problem here...
10.4.8/Intel
I restarted with no ~/Library/ScriptingAdditions just to make sure.
It still works. I concocted the script with Bill's goal but not his
code. I didn't know the value indicator had its containing slider as
a supervisor so I added a 'select' command in case I had to change
the focus for it to have values. But that turned out to be unnecessary.
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
select value indicator 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