I don't have CS6 yet, but is this what you are looking for? http://jongware.mit.edu/idcs6js/pc_Section.html --
alternateLayout string r/w The alternate layout name for a set of pages. alternateLayoutLength number readonly The number of pages in the alternate layout section.
(It seems Alternate Layouts are internally handled by sections.)
1 person found this helpful
Thank you Jongware, your suggestion answers my question!
For those who wonders, you can get the alternate layout name of a page by accessing
Hello. Please guys, paste here a complete script wich works for you. Im realy noobie in scripting in InDesign. Thank you.
Hey, when using "page.hostObjectDelegate" it errors " Object does not support the property or method 'hostObjectDelegate' ". Could you maybe give a little more detailed example so I could figure out, why this error appears?
I saw now, that you can just use "page.appliedAlternateLayout.alternateLayout" without the host.delegate stuff.
Of course… :-)
And this is also possible with Object Section.
And there are some properties as well like: