views:

338

answers:

1

It seems to be impossible to completely disable the Sleep option in MacOSX so that a user cannot manually put the system to sleep.

Is there a way in Leopard (or even Snow Leopard) for AppleScript to catch the Sleep event and cancel it?

+2  A: 

You can't do this from user mode, because the power manager prevents it, so you'll need to use a kernel extension, such as InsomniaX.

Nicholas Riley