• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Rebooting my computer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Rebooting my computer
  • Next by Date: Apple system profiler
  • Previous by thread: Re: Rebooting my computer
  • Next by thread: Apple system profiler
  • Index(es):
    • Date
    • Thread