Illustrator Script to Rename Artboards based on Artboard Size
Hi there,
I was wondering if anyone has a script they'd like to share which would rename all artboards in a document with their size?
Thanks
Eric
Hi there,
I was wondering if anyone has a script they'd like to share which would rename all artboards in a document with their size?
Thanks
Eric
Hi ericsoup,
This works for your artboard[0]
var AB = app.activeDocument.artboards[0];
var ABR = AB.artboardRect;
AB.name = (ABR[2] - ABR[0]).toFixed(3) + " points × " + (ABR[1] - ABR[3]).toFixed (3) + " points";
All you have to do is to add a loop through your artboards.
Have fun
![]()
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.