Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Rename Artboards.jsx
// for renaming artboards in Adobe Illustrator
// Info: https://graphicdesign.stackexchange.com/questions/104010/how-batch-rename-artboards-in-adobe-illustrator
//
function artBoardName_serial() {
var doc = app.activeDocument;
for (var i = 0, l = doc.artboards.length; i < l; i++) {
if (doc.artboards[i].active) {
}
// THIS IS WHERE THE RENAMING HAPPENS
if (i < 9) {
doc.artboards[i].name = "Step 0"+(i+1);
} else {
doc.artboards[i].name = "Step "+(i+1);
}
}
}
function renameArtBoard_MAIN() {
if (app.documents.length == 0) {
alert("No Open / Active Document Found");
} else {
artBoardName_serial();
}
}
renameArtBoard_MAIN();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment