My question is this: is there a way for the script to determine what the actual page number is for any given page? I need this number to insert as an attribute for an XML element that will mark the beginning of new pages in the print version so that citations can be created from the digital version. It seems like it should be something simple like myPage.pageNumber, but I haven't been able to find a property like this in any of the scripting references or any discussion of this issue in the forums.
There has to be an obvious answer, but somehow it is eluding me.
Because of the various formats for a page number, the value you want is actually returned in the Page.name property as a string.
Thank you. I knew it had to be obvious. I saw the name property, but since it returned a string I didn't think that was it. The script is now doing exactly what I wanted.