Restart without asking
Restart without asking
- Subject: Restart without asking
- From: Daniel Robinson <email@hidden>
- Date: Mon, 05 Mar 2001 19:11:34 -0500
I have 60 Macs with college kids leaving them in all different states. My "Put-Things-Where-They-Belong" script
is working fine except when I try to restart. If there is an open app with an unsaved document the script times
out because the App's asking if I want to save the document.
What I really want is a line that says in effect: "Restart ignoring everything."
What I'll accept is quitting, saving, or otherwise getting rid of those documents so the blasted thing WILL
restart.
Thanks,
--Dan
-----
tell application "Finder" to get the name of application processes -- <command-L>
whose visible is true and name is not "Script Editor"
set quitList to result as list
repeat with TheApp in quitList
quit application TheApp without saving
end repeat
-----