Skip to main content
futuremotion6798557
Inspiring
August 22, 2022
Answered

Looking for a script that will rename all artboards according to their child content's name.

  • August 22, 2022
  • 2 replies
  • 381 views

Really hoping someone can point me to the right direction. Here's an example case:

 

 

 

 





Rather than rename each artboard one by one, I am hoping there is a script out there that can rename each artboard according to the name of its contents. I can envision an edge case where an arboard contains more than one named object - and in this case just picking the first name should be sufficient..

Does anyone have a script? Can I pay someone to create it?

Thanks so much,
Jay

This topic has been closed for replies.
Correct answer Sergey Osokin

There were several similar requests. I have created a script for this task "RenameArtboardAsTopObj"
https://github.com/creold/illustrator-scripts/blob/master/md/Artboard.md#renameartboardastopobj

2 replies

Sergey Osokin
Sergey OsokinCorrect answer
Inspiring
August 22, 2022

There were several similar requests. I have created a script for this task "RenameArtboardAsTopObj"
https://github.com/creold/illustrator-scripts/blob/master/md/Artboard.md#renameartboardastopobj

futuremotion6798557
Inspiring
August 22, 2022

This script is great! Exactly what I needed. Thank you.

femkeblanco
Legend
August 22, 2022

 

var doc = app.activeDocument;
for (var i = 0; i < doc.artboards.length; i++) {
    doc.artboards.setActiveArtboardIndex(i);
    doc.selectObjectsOnActiveArtboard();
    doc.artboards[i].name = doc.selection[0].parent.name;
}

 

futuremotion6798557
Inspiring
August 22, 2022

Thank you!