MacOS – way to shut down, restart or log off without seeing the popup

macos

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.

Best Answer

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