Question
Scripting an answer for Warning Dialogue Box

During an automated process, is there a way to script an answer to this warning dialogue box? The correct choice in the process always is "Flatten". Is there a way to automatically chose this option via a script or process, or setting so the automated process does not automatically go with "Keep Layers"?
I know there is a way to supress Dialogs but is there a way to change their default answers?
