5 Replies Latest reply on Aug 30, 2014 4:02 PM by pixxxel schubser

    Trying to delete everything without a stoke or fill

    djbgraphicdesign Level 1

      var doc = app.activeDocument;

      for(var i=doc.pathItems.length-1; i>-1; i--){


      if(pathItem.filled==false && pathItem.stroked==false)    //I think this is where the error is


        alert("Found "+pathItem);






      So I am trying to find everything that does not have a stoke or fill and then delete it. I used this as a reference Finding pathItems that have no fill and no stroke Not sure what I did wrong I am new to javascript. Any help would be great I've been at this all day and it is very frustrating lol. I have CS6.