This content has been marked as final.
Show 3 replies
-
1. Re: Find Overlap Frames Pages
ping rajesh Oct 21, 2013 7:22 AM (in response to BEGINNER_X)Hi,
You can try as below:
var myDoc=app.activeDocument; var overlapArray = new Array(); var myPages = app.activeDocument.pages.everyItem().getElements(); for(i=0; i<myPages.length; i++) { var myPgItems = myPages[i].allPageItems; for(k=0; k<myPgItems.length; k++) { var bounds1 = myPgItems[k].geometricBounds; for(j=0; j<myPgItems.length; j++) { var bounds2 = myPgItems[j].geometricBounds; if(k==j) { continue; } var temp = touches(bounds1, bounds2); if(temp == true) { overlapArray.push(myPages[i].name) } } } } alert("overlap Pages: "+overlapArray); function touches(bounds1, bounds2) { if (bounds1[2] < bounds2[0]) return false; if (bounds1[0] > bounds2[2]) return false; if (bounds1[1] > bounds2[3]) return false; if (bounds1[3] < bounds2[1]) return false; return true; }
Thanks,
Rajesh
-
2. Re: Find Overlap Frames Pages
BEGINNER_X Oct 21, 2013 7:42 AM (in response to ping rajesh)Hi Ping,
Awesome.... Working fine in my end...
You save my timing
Again thanks a lot!!!
Thanks
Beginner_X
-
3. Re: Find Overlap Frames Pages
haynesc87 Dec 4, 2014 6:51 AM (in response to ping rajesh)How do you use this - what is the process of saving this as a file and what file type please?