What is the DOM expression to get current page where the cursor is:
app.activeDocument.currentPage ?
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With