5 Replies Latest reply on Jul 27, 2008 8:26 AM by Loic.Aigon

    JS CS3 How can I find -and delete- anchored empty images frames

      I have a script that works fine with text,
      I need the same function, but find and remove anchored empty image frames

      thx

      var myDoc = app.activeDocument
      for(var myCounter = myDoc.textFrames.length-1; myCounter>=0; myCounter--)
      {
      var myFrames = myDoc.textFrames[myCounter]
      if (myDoc.textFrames[myCounter].contents == ""){
      myDoc.textFrames[myCounter].remove()
      }
      }