Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jsauger

macrumors newbie
Original poster
Sep 6, 2009
3
0
Hello. I have an iMac which I have programmed to shut down automatically every night at 11:00PM. Inevitably, someone leaves Safari open (despite my repeated grumblings :mad:). Every morning I go to the computer to find it has not shut down, but instead presents me with a dialog box saying the computer could not shut down because Safari prevented it.

Is there a way, maybe a script, which will force all apps to close and allow the computer to shut down. I am not concerned if it causes data loss because a file was left open.

Thanks for any help.
 
If you're happy using cron, then creating a crontab with:

00 23 * * * pmset sleepnow

will cause a sleep at 11pm each night. I prefer sleeps to full shutdowns.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.