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: Bill Cheeseman <email@hidden>
- Date: Wed, 04 Oct 2006 18:07:06 -0400
- Thread-topic: Can't turn off screen savers in System Preferences
on 2006-10-04 12:50 AM, Philip Aker at email@hidden wrote:
> 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
Am I correct in understanding you guys to say that the above long-form
script works on 10.4.6 and on 10.4.8 Intel while my short form doesn't? I
ask, because neither the short-form nor the long-form works for me on 10.4.8
PPC -- with or without the 'select' line.
I also found that the virtual changes caused by 'increment' and 'decrement'
actions fail to stick.
I tried switching the window to 'show all' before quitting, but that didn't
help.
The observation that the help attribute still shows the old value is
discouraging.
In my script, I work around the problem by turning off the requirement of a
password to wake from sleep and screen saver. That way, the screen saver
popping up too soon doesn't really slow down my workflow, because the screen
saver goes away when I move the mouse. But I would rather not see it at all.
(My script is really a pair of scripts, one to make my laptop as usable as
possible when I'm in the security of my own home, and the other to make it
as secure as possible -- password protection on everything, and drop into
screen saver mode as quickly as possible -- when it's sitting on my desk at
work.)
--
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