4 Replies Latest reply on Oct 14, 2015 4:46 AM by Daniel Sterchi

    Only loop through links on Page (not pasteboard)

    newtoindesign

      Hi I'm looping through links with a script at the moment, but forgot about Pasteboard items, is there any simple adjustment to make it only look at parentPage=1 links for example?

       

          var doc = app.activeDocument;      

          var links = doc.links ;   

          // start loop .......................    

        for(var i = 0; i < links.length; i++) {   

      link = links[i];

       

      ....