Copy link to clipboard
Copied
Copy link to clipboard
Copied
#target illustrator
var doc = app.activeDocument;
var docVB = doc.visibleBounds;
var left = docVB[0] – (((docVB[2] - docVB[0])*1.1 - (docVB[2] - docVB[0])) / 2);
var top = docVB[1] + (((docVB[1] - docVB[3])*1.1 - (docVB[1] - docVB[3])) / 2);
var right = docVB[2] + (((docVB[2] - docVB[0])*1.1 - (docVB[2] - docVB[0])) / 2);
var bottom = docVB[3] - (((docVB[1] - docVB[3])*1.1 - (docVB[1] - docVB[3])) / 2);
var ab = doc.artboards.getActiveArtboardIndex();
doc.artboards[ab].artboardRect = [left,top,right,bottom];
Copy link to clipboard
Copied
#target illustrator
var doc = app.activeDocument;
var docVB = doc.visibleBounds;
var left = docVB[0] - 10;
var top = docVB[1] + 10;
var right = docVB[2] + 10;
var bottom = docVB[3] - 10;
var ab = doc.artboards.getActiveArtboardIndex();
doc.artboards[ab].artboardRect = [left,top,right,bottom];
Copy link to clipboard
Copied
Yes, Shift+o.