You can disbale the power button with this script
it will allow you to enable and disable at your discretion, you won't see a menu when you press power.
display dialog "Would you like a dialogue box when you press the power button?" buttons {"Cancel", "Yes", "No"} with icon 2
if the button returned of the result is "No" then
try
do shell script "cd /System/Library/CoreServices/loginwindow.app/Contents/Resources/English.lproj\n \tmv PowerButton.nib PowerButton1.nib" with administrator privileges
display dialog "The dialogue box has been set to hide. Thank you for using my app 🙂 Made by Usama Bhatti 2013" buttons {"OK"} default button 1 with icon 2
on error the error_messagenumber the error_number
display dialog "The dialogue box is already set to off" buttons {"OK"} default button 1 with icon 2
end try
else
try
do shell script "cd /System/Library/CoreServices/loginwindow.app/Contents/Resources/English.lproj\n \tmv PowerButton1.nib PowerButton.nib" with administrator privileges
display dialog "The dialogue box has been set to appear. Thank you for using my app 🙂 Made by Usama Bhatti 2013" buttons {"OK"} default button 1 with icon 2
on error the error_messagenumber the error_number
display dialog "The dialogue box is already set to appear" buttons {"OK"} default button 1 with icon 2
end try
end if