/*
Scripted by Skemicle
*/
if (parseFloat(app.version) < 6)
main();
else
app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Adjust Pasteboard Margins");
function main() {
var win = app.dialogs.add({name:"Adjust Pasteboard Margins"});
with (win.dialogColumns.add()){
staticTexts.add({staticLabel:"Set pasteboard top/bottom margins to:"});
staticTexts.add({staticLabel:"Set pasteboard left/right margins to:"});
}with(win.dialogColumns.add()){
var tbMarginField = textEditboxes.add({editContents:"1"});
var lrMarginField = textEditboxes.add({editContents:"5"});
}if(win.show() != 1){exit()}
var tbMargin = lrMarginField.editContents;
var lrMargin = tbMarginField.editContents;
app.activeDocument.pasteboardPreferences.pasteboardMargins = [tbMargin,lrMargin];
}Sorry, I forgot about the option to cancel the script in the previous script. If you canceled the previous script it would still change the margins. This script has been updated so if the dialog box is canceled the margins won’t change.