Avatar

Level 3

but it seems that after event.target.closeDoc(true);

the codes that follow will continue to run,

but this doesn't happen if I use app.execMenuItem("Close");

I already include the closeDoc inside the try catch.