Hi Peter
I try
#target indesign
if(app.modalState)
{
alert("Model or Alert dialog is open");
}
But second line is not run untill dialog is not closed.
Is there is any property which is use with #target indesign like :
#target indesign
with();
Thanks.