• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dealing with Sliders...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Dealing with Sliders...
      • From: kai <email@hidden>
References: 
 >Dealing with Sliders... (From: email@hidden)
 >Re: Dealing with Sliders... (From: kai <email@hidden>)
 >Re: Dealing with Sliders... (From: kai <email@hidden>)

  • Prev by Date: MacSFTP
  • Next by Date: Re: Font issue in quark
  • Previous by thread: Re: Dealing with Sliders...
  • Next by thread: Re: Dealing with Sliders...
  • Index(es):
    • Date
    • Thread