1 Reply Latest reply on Dec 30, 2012 11:15 PM by Pooja_IDDev

    How to check a corrupted image

    Pooja_IDDev Level 1

      Hi All,

       

           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?

       

      Thanx,

        • 1. Re: How to check a corrupted image
          Pooja_IDDev Level 1

          Hi,

           

          I have written following code...

          #targetengine "session"

          main();

          function main(){

              var myApplicationEventListener = app.eventListeners.add("beforeOpen",myEventInfo);

          }

           

           

          function myEventInfo(myEvent){

              var docName = app.documents.item(0).name;

              var myString = "Current Target: Import ::" + myEvent.currentTarget.name+ docName;

              alert(myString);

          }

           

           

          as event is "beforeOpen", how to take a document object actually i want to get all links from a document.

           

          Thanks  In advance,