Suppressing "reopen windows" dialog when restarting a crashed program in Mountain Lion

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.


Solution 1:

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.

Solution 2:

There is a Preference Pane called Secrets that has an option under "System" called "Crash Dialog". Mine is set to "none" and I never see that dialog. Maybe that will work for you.

http://code.google.com/p/blacktree-secrets/

Solution 3:

I had similar issue with tastyworks running

defaults write -app /Applications/tastyworks.app NSQuitAlwaysKeepsWindows -bool false

from terminal helped.

and don't forget to restart system