Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is there any hotkey, AppleScript or separate application for that? I don't really like kill 20 applications manually every time I make reboot.

share|improve this question
    
Do you have to kill the applications before or after reboot? –  Mark Mar 6 '13 at 23:46

2 Answers 2

You can often just hold ⌘Q, or uncheck "Reopen windows when logging back in" in the ⇧⌘Q dialog. Anyway, here is a shell script that quits applications shown in the Dock in parallel:

IFS=$'\n'
for a in $(osascript -e 'set text item delimiters to linefeed
tell app "System Events" to name of processes where background only is false
result as text'); do osascript -e 'on run {x}
quit app x
end' -- "$a" &
done

You can assign it a shortcut with an application like Alfred or FastScripts.

share|improve this answer

The Finder should safely quit any open apps whenever you logout or reboot. If there is a document with unsaved changes It will prompt you to save or discard the changes before quitting. The keyboard shortcut is Command-Option-Shift-Q.

If you do not want all the apps restarting when you log back in, uncheck the "Reopen windows when logging back in" checkbox in the logout dialog.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.