Copy link to clipboard
Copied
I have a problem with understanding where indesign stores auto page numbering value. So, i have a master page with auto page numbering and inside script i need to extract page number value, but i couldn't find it. If i extract text frame it contains only text before page number, also i thought it is stored as a variable (for example page.masterPageItems[0].textVariableInstances), but it is empty.
Can someone advice me where i can find it?
Copy link to clipboard
Copied
Hi Alex
On the master spreads you can only find the page number marker and this is not a text variable! The current page number marker is the SpecialCharacters character.AUTO_PAGE_NUMBER
Copy link to clipboard
Copied
Thanks for answer. So as far as i understand InDesign uses this marker (SpecialCharacters character.AUTO_PAGE_NUMBER) to replace it with actual page number but there are no way to retrieve this value during script execution, correct?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks!
Copy link to clipboard
Copied
page.name always contains real formatted page number which appears on a page.