Getting the name of the appliedAlternateLayout
I am trying to solve an issue with exporting JPEG versions of InDesign pages.
The exportFile command gets an error if there are alternate layouts since if you just tell it to output page 1, it doesn't know whether you mean page 1 of the first layout, or one of the other layouts.
In the Export dialog box, you can specify "alternateLayoutName:pageNumber" i.e. "Horizontal Layout:1" .
In order to supply this information I am trying to extract the name of the alternate layout from the current page, however that doesn't seem to be an accessible value in the DOM.
curPage.appliedAlternateLayout returns a [section]
and there does not appear to be an object curPage.appliedAlternateLayout.name
Does anyone know of a way around this?
James Haney
