1 Reply Latest reply on Dec 18, 2014 11:32 AM by brianp311

    I have an InDesign javascript that two weeks ago worked on my document.  Now it does not work.  I am getting an error message in Line 9.  This is a script I found on this forum and altered to delete my specific image.

    FSI Developer

      var del_list = ["F7X Header.eps"]; 

      var my_doc = app.activeDocument; 

      var my_image = my_doc.allGraphics; 

       

      for (var i = (my_image.length - 1); i >= 0; i--) { 

           var tmp_name = my_image[i].itemLink.name; 

           for (var ii = 0; ii < del_list.length; ii++) { 

                if (del_list[ii] === tmp_name) { 

                    my_image[i].parent.locked = false; 

                    my_image[i].remove(); 

                } 

           }