Hi, I'm new to this forum and this is my first post.
I have the scripts which does the job but they create a duplicate of the active page/spread.
This one-liner will duplicate the current spread:
app.layoutWindows.activeSpread.duplicate (LocationOptions.AFTER, app.layoutWindows.activeSpread);
and this one the current page:
app.layoutWindows.activePage.duplicate (LocationOptions.AFTER, app.layoutWindows.activePage);
Any help on this?