This file contains 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
// 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