Batch renumbering of Artboard names

New Here ,
Jun 14, 2021 Jun 14, 2021

Copy link to clipboard

Copied

Hi, does anyone have a solution to batch renumber artboard names? See the attached image for an example. I have found some great scripts in this community to batch rename but none that will change the numbering. Any help would be greatly appreciated!

TOPICS
Scripting

Views

163

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Adobe Community Professional , Jun 14, 2021 Jun 14, 2021
Hi, Try following snippet var startingNumber = 100; var doc = app.activeDocument; var _artboards = doc.artboards; for (var i = 0; i < _artboards.length; i++) { var _artBoardName = _artboards[i].name.replace(/\d/g, ' '); _artboards[i].name = _artBoardName + (startingNumber + i); }

Likes

Translate

Translate
Adobe Community Professional ,
Jun 14, 2021 Jun 14, 2021

Copy link to clipboard

Copied

Hi,

Try following snippet

 

var startingNumber = 100;
var doc = app.activeDocument;
var _artboards = doc.artboards;
for (var i = 0; i < _artboards.length; i++) {
    var _artBoardName = _artboards[i].name.replace(/\d/g, ' ');
    _artboards[i].name = _artBoardName + (startingNumber + i);
}

 

Best regards

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2021 Jun 14, 2021

Copy link to clipboard

Copied

LATEST

Hi Charu,

 

Your snippet solved my problem like a charm. Thanks so much for your help!

 

Best,

Alex

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines