• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Batch renumbering of Artboard names

Community Beginner ,
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

509

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

Community Expert , 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);
}

 

Votes

Translate

Translate
Adobe
Community Expert ,
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

Votes

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
Community Beginner ,
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

Votes

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