Re: Rebooting my computer
Re: Rebooting my computer
- Subject: Re: Rebooting my computer
- From: Yosemite <email@hidden>
- Date: Tue, 07 Nov 2000 06:26:09 -0900
-- there are of course other ways to restart your Mac on a schedule
property restartTime : 0
property restartInterval : 21600 -- 6 hours
if restartTime is 0 then
set restartTime to current date
else
if ((current date) - restartTime) > restartInterval then
set restartTime to current date -- reset for next
tell application "Finder" to restart
end if
end if
-- hcir
mailto:email@hidden
>
I'm a new applescripter and I've been working with scripts that were created
>
before me.
>
I've been trying to add a "reboot the computer every 6 hours" to an
>
existing script.
>
I have been unsuccessful with what I have added:
>
>
set theRebootTime to ((current date) + ((60 * 60) * 6))
>
>
This will not reboot the computer.
>
I'm I missing a step or two???