Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current page number in InDesign CS5 from Javascript

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

app.activeDocument.currentPage ?
like image 367
PeterMmm Avatar asked Sep 22 '10 14:09

PeterMmm


1 Answers

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

like image 139
Skilldrick Avatar answered Oct 02 '22 01:10

Skilldrick