RE: Rebooting my computer
RE: Rebooting my computer
- Subject: RE: Rebooting my computer
- From: "Goodman, Steve" <email@hidden>
- Date: Tue, 7 Nov 2000 09:47:49 -0600
Here is something you can try:
property reboothour : {"6", "12", "18", "24"}
on idle
set myhour to the (time of (current date)) div hours --based on 24 hour
clock
if reboothour contains (myhour as text) then
tell application "Finder" to restart
else
return 3600 -- wait an hour and check again
end if
end idle
Steve Goodman
Six|12 - THE LTC GROUP
......."Duct tape is like the force, it has a light side and a dark side and
it holds the universe together."------Unknown
>
----------
>
From: Keith Bailey
>
Sent: Tuesday, November 7, 2000 8:28 AM
>
To: 'email@hidden'
>
Subject: Rebooting my computer
>
>
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???
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users