Get current page number in InDesign CS5 from Javascript
10,455
You want:
app.activeWindow.activePage.name;
This will give you the actual page number name as a string (i.e. if your pages are numbered in roman then this will give 'v' for the fifth page).
![PeterMmm](https://i.stack.imgur.com/8zmez.png?s=256&g=1)
Comments
-
PeterMmm about 2 years
What is the DOM expression to get current page where the cursor is:
app.activeDocument.currentPage ?
-
Sundeep Pidugu over 4 yearsIs there a way to find out page number from a textFrame?
-
Sundeep Pidugu over 4 yearsIs there a way to find out page number from a textFrame?
-
Fitspade over 2 yearsIs it possible to get the index of the page and not the name ?