Just wondering anyone would be able to help me with this.
var inlines = myDocument.stories.everyItem().pageItems.everyItem().getElements();
myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.millimeters;
myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.millimeters;
myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
var myPage = myDocument.pages.item(0);
var myX = myPage.marginPreferences.left;
var myY = myPage.marginPreferences.top;
I have tried removed the x and y coordinates and run the script again with only duplicate(); it is still breaking the server. Can anyone help???? Hellllpppppp....