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

Re: Page Number of a Search Result

$
0
0

The number of the page on which some text sits is the name of the text's parent text frame's parent page (if you see what I mean):

 

var found_words =  my_document.findText();

$.writeln (found_words[0].parentTextFrames[0].parentPage.name);

 

That's CS5 and later. In CS4 it's slightly different, I forget the details.

 

Peter


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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