Indesign is crashing while opening a document, and its crashing because, in document there is corrupted image , so while opening a document i need to check is there any image which is corrupted.
I guess i need to use an event before opening a document.
Is anybody has any idea how to do this?
I have written following code...
var myApplicationEventListener = app.eventListeners.add("beforeOpen",myEventInfo);
var docName = app.documents.item(0).name;
var myString = "Current Target: Import ::" + myEvent.currentTarget.name+ docName;
as event is "beforeOpen", how to take a document object actually i want to get all links from a document.
Thanks In advance,