Thanks Peter for reply
I know that best way to stop these message is all files are closed correctly.
My problem is that In my application (on MAC OS) when InDesign run and anyone close InDesign with (Force Quit) from Dock Then after this if I want to create InDesign using script :
#target indesign
app.documents.add();
then document is not create because a model dialog or alert is active.
I want that this model dialog or alert is not popup.
or
If there is no way to stop this message then how give answer of this message using script.
Thanks