Closed jimmynotjim closed 6 years ago
@Scotchester Don't forget to drop a comment in here with the Ai script when you get a chance.
Here's the final script we arrived at:
#target illustrator
#targetengine main
var doc = app.activeDocument;
var artboard = doc.artboards[0];
var art = doc.pageItems[0];
var coordinates = art.position;
var desiredW = art.width;
art.position = [ 0, coordinates[1] ];
artboard.artboardRect = [
artboard.artboardRect[0],
artboard.artboardRect[1],
desiredW,
artboard.artboardRect[3]
];
Note: This script requires that all of the art in the Illustrator document be collected together in a single group.
Update the script to only remove the left and right whitespace, leaving the top and bottom white space and the path sizes intact.