Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > More exact power management

More exact power management
Thread Tools
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Jan 18, 2007, 02:26 AM
 
My computer sleeping needs are a little bit greater than what's offered in OS X. I would like my computer to sleep after 10 minutes of inactivity between about midnight and 7am, but not go to sleep otherwise.

Can this be done with Applescript? (or some other way?)
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
Dedicated MacNNer
Join Date: Apr 2004
Status: Offline
Reply With Quote
Jan 26, 2007, 04:47 PM
 
mmm... There're some notifications that are sent/can be registered for in Cocoa which alert the app when the system is preparing to sleep. You could (maybe) write a faceless app that waits for the request to sleep and then cancels it if the time isn't in the right range. the maybe is because it might just be one of those "this is going to happen" things, rather than a delegate method "am I allowed to do this". Not sure.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:44 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2