MacOS – Suppressing “reopen windows” dialog when restarting a crashed program in Mountain Lion

macos

Is there any way of suppressing the alert dialog that pops up when restarting a crashed program in Mountain Lion (10.8.2)? The alert's text reads:

"The last time you opened , it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?"

I want the OS to just open the program without asking me this, since the computer is being used in a kiosk-type application.

Thanks,

c.

Best Answer

defaults write com.apple.CrashReporter DialogType none (or the option in Secrets) disables crash report dialogs but not the dialogs shown when reopening crashed applications.

Disabling Resume would remove them though. You can either check "Close windows when quitting an application" in the General preference pane or disable it in individual applications with defaults write -app "Application Name" NSQuitAlwaysKeepsWindows -bool false.