I am new at Java scripting in general, and especially in InDesign.
I would like to know, how can I retrieve the page number of the current page in the document.
I.e., if the user runs the script while he is working on page 123, I would like the script to be able to retrieve the number to store it in a variable.
myPageName = app.activeWindow.activePage.name
The choice of variable name is flexible
Thanks a lot!