Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can i disable the power button on my MacBook Pro 2012 13''? My friends keep pressing it while I'm working and it is extremely annoying.

So i have some really annoying friends who like to turn off the laptop when i am working and it's not funny, Does anyone have a solution as to how i can temporarily disable the button when they are around and then just flip it back to normal use?

MacBook Pro (13-inch, Mid 2012), OS X Mountain Lion

Posted on Aug 21, 2012 9:45 AM

Reply
Question marked as Best reply

Posted on Aug 21, 2012 12:53 PM

Use a bluetooth keyboard and mouse. Wire the computer to the mains so that the metal casing is live!

17 replies

Aug 21, 2012 1:20 PM in response to AnshulDavda

AnshulDavda wrote:


So i have some really annoying friends who like to turn off the laptop when i am working and it's not funny, Does anyone have a solution as to how i can temporarily disable the button when they are around and then just flip it back to normal use?

Close the lid, grasp your Mac from either of its sides, strike friend firmly around the head, repeat until he stops with the button already!

Aug 21, 2012 4:52 PM in response to AnshulDavda

Find a new Friend. As the one you think you have IS NOT your friend.


Or the next time he does it PUNCH him in the FACE, HARD, REAL HARD. They say to him if you are my friend you will stop doing that. If you aren't my friend then every time you do that I will PUNCH you in the FACE.


See you first have to get his attention. That what the punch in the face is for.

Aug 21, 2012 5:08 PM in response to Shootist007

Shootist007 wrote:


Find a new Friend. As the one you think you have IS NOT your friend.


Or the next time he does it PUNCH him in the FACE, HARD, REAL HARD. They say to him if you are my friend you will stop doing that. If you aren't my friend then every time you do that I will PUNCH you in the FACE.


See you first have to get his attention. That what the punch in the face is for.

Hi Shootist, you and I have disagreed before this, but not this time 🙂

Aug 24, 2013 10:58 AM in response to AnshulDavda

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

Can i disable the power button on my MacBook Pro 2012 13''? My friends keep pressing it while I'm working and it is extremely annoying.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.