Created
August 17, 2015 04:15
-
-
Save naichilab/4e0f8b93a29cc2aab4c9 to your computer and use it in GitHub Desktop.
Offset all artboard size for illustrator CC 2015
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var offset = 5;//Top,Right,Bottom,Left expand 5px. | |
var doc = app.activeDocument; | |
var abs = doc.artboards; | |
for(var i=0;i<abs.length;i++){ | |
var a = abs[i]; | |
var rect = a.artboardRect; | |
rect[0]=rect[0]-offset; | |
rect[1]=rect[1]+offset; | |
rect[2]=rect[2]+offset; | |
rect[3]=rect[3]-offset; | |
a.artboardRect = rect; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment