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
Post a Comment