Reply To: Script to automate layout creation

#89395
Brian Pifer
Participant

Hi Dragos,

Something like this should work for the first part of the problem you’re trying to solve. It assumes you have the main frame you want resized selected with the black arrow. It should resize the frame to the edge of the page. I don’t have much familiarity with bleeds so couldn’t help you too much there. Hopefully this is a useful start.

var theDoc = app.activeDocument;
var theSelection = app.selection[0];
var bounds = [0, 0, theDoc.documentPreferences.pageHeight, theDoc.documentPreferences.pageWidth];
theSelection.geometricBounds = bounds;

This article was last modified on October 28, 2016

Comments (0)

Loading comments...