Re: Maximum Idle time 86400 seconds???
Re: Maximum Idle time 86400 seconds???
- Subject: Re: Maximum Idle time 86400 seconds???
- From: Jason Bourque <email@hidden>
- Date: Wed, 21 Nov 2001 06:36:58 -0500
On 11/20/01 9:51 AM, "Michelle Steiner" <email@hidden> wrote:
>
On 11/19/01 12:45 PM, Jason Bourque <email@hidden> wrote:
>
>
> I have a script that shuts down for the weekend.
>
>
>
>
>
> By subtracting times
>
>
>
> Go into idle at 7pm and restart the computer at 6:30 the next morning unless
>
> it's Friday then restart on Monday.
>
>
Why use an Applescript to do what the system has built in? Look at the
>
"schedules" section of the Energy Saver control panel.
>
>
Set it to startup the computer at 6:30 am on weekdays and to shut down at
>
7 PM on weekdays.
>
>
--Michelle
What a great idea but would you believe that when the system might have it
built in not all machines can use it. Some only have a wake up from sleep
option. Go figure. My iMac restart, My 6 G4 AppleScript Servers at work only
sleep, my WallStreet PowerBook on sleep.
From the Mac Help:Scheduling startup and shutdown or wakeup and sleep.
"Depending on the computer you're using, you can specify times for your
computer to start up and shut down or to wake up and sleep. On newer models
you can set both pairs of options, but implement only one at a time. On
older desktop computers you can only schedule startup and shutdown; on older
portable computers, you can only schedule wakeup and sleep."
So that is why I choose the idle work around.
So can anyone confirm this is a problem.
My work around is to have a date global variable and a restart global
variable that is checked on the next idle loop if the restart global is true
nothing happens just idle loops again but if the date global is less than
the current date then restart.
Jason