Well, after poking around, I found this in the “community” folder of InDesign Scripts:
__
aDoc = app.activeDocument;
for (i=0;i<aDoc.pages.length;i++){
aSide = aDoc.pages[i].side;
aSide = aSide + “”;
aDoc.pages[i].insertLabel(“direction”,aSide);
}
aDoc.documentPreferences.allowPageShuffle = true;
aDoc.documentPreferences.facingPages = false;
aDoc.documentPreferences.allowPageShuffle = false;
aDoc.documentPreferences.facingPages = true;
for (i=0;i<aDoc.pages.length;i++){
myPage = aDoc.pages[i];
mySide = myPage.extractLabel(“direction”);
if (mySide == “1818653800”){
myPage.move(LocationOptions.atEnd,myPage,BindingOptions.leftAlign);
}else{
myPage.move(LocationOptions.atEnd,myPage,BindingOptions.rightAlign);
}
}
__
Unfortunately, the script instantly separates the spreads, but everything on the right hand page (with the exception of parent page items) shifts to the right by about a half-inch. I have to highlight everything and do an align>center or align to left-hand margin. Is there anything in the script code I can edit to correct this problem?