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).

Share:
10,455
PeterMmm
Author by

PeterMmm

AC56EF55D788

Updated on June 22, 2022

Comments

  • PeterMmm
    PeterMmm about 2 years

    What is the DOM expression to get current page where the cursor is:

    app.activeDocument.currentPage ?
    
  • Sundeep Pidugu
    Sundeep Pidugu over 4 years
    Is there a way to find out page number from a textFrame?
  • Sundeep Pidugu
    Sundeep Pidugu over 4 years
    Is there a way to find out page number from a textFrame?
  • Fitspade
    Fitspade over 2 years
    Is it possible to get the index of the page and not the name ?