[AS][IDCS2] Get page number to determine left or right

I feel like I must be missing something obvious here, but is there a way to get the page number of an IDCS2 page? I need to determine left and right hand pages.

Many thanks!!!


What you want to do is get the side property of the page in question:

set TheSide to side of page 2 of document 1