• 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: kai <email@hidden>
  • Date: Fri, 10 Feb 2006 23:17:12 +0000


On 10 Feb 2006, at 22:27, Adam Bell wrote:

do shell script "pmset dim 0 spindown 0" user name "ShortName" password "MyPW" with administrator privileges

While the "dim" argument changes the display sleep setting (slider 2), "spindown" determines whether or not the "Put the hard disk(s) to sleep when possible" checkbox is checked. The "sleep" argument should actually be used to change the computer sleep settings (slider 1).


It may also be worth noting that, while the "dim" and "spindown" arguments still work, they have been replaced in Tiger by "displaysleep" and "disksleep".

So to achieve similar results to the GUI script I posted, I'd probably use something like:

---------------

do shell script "pmset sleep 0 displaysleep 0" user name "ShortName" password "MyPW" with administrator privileges

---------------

---
kai


_______________________________________________ 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: Adam Bell <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>)
 >Re: Dealing with Sliders... (From: Adam Bell <email@hidden>)

  • Prev by Date: Re: how to compare two lists without looping? Possible?
  • Next by Date: Re: Dealing with Sliders...
  • Previous by thread: Re: Dealing with Sliders...
  • Next by thread: Re: Dealing with Sliders...
  • Index(es):
    • Date
    • Thread