Re: Dealing with Sliders...
Re: Dealing with Sliders...
- Subject: Re: Dealing with Sliders...
- From: Adam Bell <email@hidden>
- Date: Fri, 10 Feb 2006 18:27:09 -0400
Although I usually try to avoid them, this is more reliable for me than GUI scripting and avoids the window of the Energy Saver as well:
do shell script "pmset dim 0 spindown 0" user name "ShortName" password "MyPW" with administrator privileges
To set them back, replace the zeros (Never) with whatever you want.
If you want to avoid the screensaver as well, I use a little app called "Jiggler".
On 2/10/06,
kai <email@hidden> wrote:
On 10 Feb 2006, at 21:36, I wrote:
> Try something like this, Jason:
Sorry, Jason - I interpreted your script and missed part of your
intro. This is probably more what you want:
----------------
tell application "System Preferences" to reveal (first anchor of pane ¬
"com.apple.preference.energysaver" whose name is "Sleep")
tell application "System Events" to tell tab group 1 of window
"Energy Saver" of ¬
process "System Preferences" to set {value of slider 1, value of
slider 2} to {901, 901}
----------------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
--
Some minds remain open long enough for a truth to both enter and leave without processing.
_______________________________________________
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