Only loop through links on Page (not pasteboard)


hi i'm looping through links script @ moment, forgot pasteboard items, there simple adjustment make @ parentpage=1 links example?

 

    var doc = app.activedocument;      

    var links = doc.links ;   

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

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

link = links[i];

 

....

var objs = app.activedocument.pageitems.everyitem().getelements(); 

while(obj=objs.pop()){ 

     if(obj.parentpage == null)  // check condition only  find links in page

 

          } 

}



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

after effects warning: unable to create drawing surface

Maximum number of authorizations reached!