• 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: Scripting energy saver sleep/wake schedules?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting energy saver sleep/wake schedules?


  • Subject: Re: Scripting energy saver sleep/wake schedules?
  • From: "EU - Luca Pozzato" <email@hidden>
  • Date: Wed, 20 Feb 2008 03:18:08 +0100

hi Nat,

this simple shell script should get you start…
My experience in read/write system plist i very limited so hopefully somebody else will point you in the right direction.

set powerdata to (do shell script "defaults read /Library/Preferences/SystemConfiguration/com.apple.PowerManagement")
set wakedata to (do shell script "defaults read /Library/Preferences/SystemConfiguration/com.apple.AutoWake")

Ciao
Luca
-----Original Message-----
From: Nathaniel Irons <email@hidden>
To: email@hidden
Date: Tue, 19 Feb 2008 19:23:35 -0500
Subject: Scripting energy saver sleep/wake schedules?

> Not sure if this is strictly an applescript issue, but I'm wondering if
> anyone knows of a way to programmatically set the Energy Saver
> sleep/wake
> schedule. I've got about 120 Macs in an office (some 10.3, mostly 10.4,
> a
> few 10.5) with a hodgepodge of settings, and if there was a way to
> remotely
> straighten them all out without poking at each machine individually,
> that'd
> be swell.
>
> I assume this is possible with GUI scripting, but that's just one step
> removed from walking the building, especially as I'd like to be able to
> re-run this operation in the future without disrupting someone working
> at
> the machine.
>
> I haven't found any mechanism in Applescript to pull this off, and
> while I
> figure it's probably possible in IOKit, I haven't found any relevant
> documentation there, either. Thanks for any suggestions.
>
>   -nat



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Scripting energy saver sleep/wake schedules? (From: Nathaniel Irons <email@hidden>)

  • Prev by Date: Re: Broken date math on AppleScript 2.0
  • Next by Date: Re: Scripting energy saver sleep/wake schedules?
  • Previous by thread: Scripting energy saver sleep/wake schedules?
  • Next by thread: Re: Scripting energy saver sleep/wake schedules?
  • Index(es):
    • Date
    • Thread