Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.5: Remove Shut Down from the Apple menu' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Remove Shut Down from the Apple menu
Authored by: tedw on Nov 18, '09 09:29:55AM
Really, this is just a bit silly. Corporate groupthink: use the most dramatic solution possible within the bounds of feasible solutions... ;-)

Here's a rough take on an easier way to do this. Take the following code, copy it into Script Editor, and save it as a stay-open application (which I'll call "", but you can name whatever you like):

on quit
	tell application "Finder"
		display alert "Shut Down Warning" message "Please do not shut down this machine.  Administrators need access for routine maintenance." as critical
	end tell
end quit
Now, run the NoNoNo application (in fact, make it a login item). Every time someone tries to shut down or log out of the machine, they will get a warning alert as above, and then a minute later the Finder will tell them that it's canceling the logout because the application "NoNoNo" would not quit. The only way to restart or log out is to force-quit, which most users won't do, and which you could probably prevent by changing it's permissions level.

The concept could use some refinement, but at least it doesn't require hacking core elements of the system.

[ Reply to This | # ]