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 > Applications > An Application to execute Multiple Sleeps during any given day

An Application to execute Multiple Sleeps during any given day
Thread Tools
Dedicated MacNNer
Join Date: Apr 2003
Location: Detroit, MI
Status: Offline
Reply With Quote
Jun 9, 2005, 08:57 PM
 
I found Kudown, but it doesn't work in Panther/Tiger
     
Mac Elite
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jun 9, 2005, 09:57 PM
 
How about this:
  1. Make an Applescript using Script Editor. The script should be
    [PHP]
    tell application "System Events"
    sleep
    end tell
    [/PHP]
    (not really PHP code but this bulletin board code crap sucks)
  2. Save that Applescript somewhere you like.
  3. Open iCal. Make a new event. Name it "Sleep Comp" or something, give it an Alarm event of "Run Script", select the sleep script you saved in step 2 and schedule it to execute "1 minute before" or something.

Should be able to sleep any time you want now. You can use iCal to easily make scheduled sleeps that repeat throughout the week or only on certain days.
Genius. You know who.
     
Dedicated MacNNer
Join Date: Apr 2003
Location: Detroit, MI
Status: Offline
Reply With Quote
Jun 9, 2005, 10:23 PM
 
OK, well, I tried something like this before but with Cronnix (not iCal).

The problem is now after 10.4.1 and the latest Security Update this script cannot run when my screensaver is running that requires a password to dismiss. Other scripts work fine behind the screensaver.

By the way, does iCal need to be open in order for the alarm and the script to execute?
     
Mac Elite
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jun 10, 2005, 12:07 AM
 
Originally Posted by Russian Mac fan
does iCal need to be open in order for the alarm and the script to execute?
I don't think so. There is a background process (iCal Helper I think) that keeps track of alarm stuff.
Genius. You know who.
     
   
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 11:38 AM.
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