I have 2 scripts to resize the artboard 1 for mm and 1 for inches. is there a way to have the script use a drop down to change between the 2 Codes? I got the Inches code here and adjusted it for mm. The inches one is the exact same code but with a multipier of 72 instead of 2.83....... Also is it possible to keep the Prompts on the same page? right now i have to enter the Width press ok then enter the Height. I think it would be a little nicer looking if it were all on the same menu. As usual thanks for your help. var w = prompt("width (in mm)",14,) * 2.8346456692913; var h = prompt("height (in mm)",7.5) * 2.8346456692913; var docs = app.documents; for (var i = 0; i < docs.length; i++) { docs[i].activate(); for (var j = 0; j < activeDocument.artboards.length; j++) { var AB = activeDocument.artboards[j]; var xCentre = AB.artboardRect[0] + ((AB.artboardRect[2]-AB.artboardRect[0])/2); var yCentre = AB.artboardRect[1] + ((AB.artboardRect[3]-AB.artboardRect[1])/2); AB.artboardRect = [xCentre - w/2, yCentre + h/2, xCentre + w/2, yCentre - h/2]; } }
... View more