Skip to main content
Marcos_Suárez
Known Participant
May 30, 2012
Question

I need to find a text and get the page number where it is located

  • May 30, 2012
  • 1 reply
  • 728 views

I need to find a text and get the page number where it is located... (CS4)


This topic has been closed for replies.

1 reply

Marcos_Suárez
Known Participant
May 30, 2012

Well...!!!

I found it...

PG =  myFoundItem.parentTextFrames[0].parent.name;

Thanks...

Community Expert
June 1, 2012

@Marcos – in InDesign CS5 and above it's possible to get the page name by:

myTextFrame.parentPage.name;

With "parent.name" you'll  get NOT the name of the page if your text frame is e.g. part of a group.
In that case the parent is simply its group.

Uwe