6

I would like to know if there is a way to delete the popup shown when you are trying to shut down, restart or log off your Mac with version OS X 10.9 - What I want is that when I click on one of these buttons, the computer makes that action without asking for a confirmation and the countdown of 1 minute.

I know you can use Alt+Shut down/Restart/Log off but I would like to know if there is a direct way to deactivate that popup via Terminal or something else.

2
  • Are you talking about the menu items in the Apple menu?
    – NReilingh
    Commented May 5, 2014 at 4:10
  • @NReilingh yes that is right :)
    – Alex
    Commented May 5, 2014 at 22:24

2 Answers 2

8

There are a few methods to shutdown without confirmation (this will not remove the confirmation from the original method):

  1. In Terminal: shutdown -h now, but this force quits all applications
  2. Make an Applescript and save it as 'Application,' save it somewhere easily accessible, but not prone to accidental clicks:

    on run
      do shell script "shutdown -h now"
    end run
    
  3. The shortcut Control-⌥ Option-⌘ cmd-⏏ Eject

  4. Clicking shutdown with ⌥ Alt / ⌥ Option held down (as you said)

  5. If using Alfred, you can summon the Alfred window and start typing "Shut down" or "Restart" and then pressing Enter. No Power Pack needed, no force quits, no dialog and no countdown.

You could also try following this method by WZZZ, but I haven't checked if it works. It reduces the time to auto-quit apps, so do:

defaults write org.x.X11 wm_auto_quit_timeout -int x
1
  • 1
    That default seems very unlikely X11 is a windowing system not used by most Apps
    – mmmmmm
    Commented May 4, 2014 at 23:51
2

I'm not sure why you would want to do this, but the only way to have the Apple menu items not prompt for confirmation (and without the use of the option modifier) would involve editing the system's interface files to substitute the "now" items that display with the option key for the ones that display normally.

My approach would be to expand on item #3 of shub's answer:

  • Command+Option+Control+Eject - Shutdown
  • Command+Control+Eject - Restart
  • Command+Option+Shift+Q - Log Out

Also some elaboration on the AppleScript approach:

tell application "System Events"
    shut down           -- or 'log out' or 'restart' or 'sleep'
end tell

This won't ask for confirmation but also won't force-quit everything.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .