Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Creating Directory - Showing Listing Count on All Directory Pages

$
0
0

Hi V

 

Sorry about that

Change the 1st while loop to

   while (l--) {        nameFinds = ([]).concat.apply ([],cityFinds[c]);        if (!(fl = nameFinds.length)) {c++; continue;}        firstFind = nameFinds[0];        pageOffset = firstFind.parentTextFrames[0].parentPage.documentOffset;        theCities[n] = city = firstFind.contents;        pageOffsets [n++] = pageOffset;        entryFinds [city] = (entryFinds [city]) ? entryFinds [city] + fl : fl;        c++;        }

 

should work


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>