My script (java) shown below will only apply to the first page of the document. How can i get it to apply to all pages of my document? What am I missing? Thanks.
scirpt:
myDocument = app.activeDocument
with (myDocument.pages.item(0).marginPreferences){
columnCount = 1;
//columnGutter can be a number or a measurement string.
columnGutter = "0";
bottom = "0"
//When document.documentPreferences.facingPages == true,
//"left" means inside; "right" means outside.
left = "0"
right = "0"
top = "0"
inside = "0"
}