Skip to main content
OwenLeonard
Participant
June 8, 2018
Question

Script to change art-board name to the first layer name in that art-board.

  • June 8, 2018
  • 2 replies
  • 742 views

Hi,

I'm looking for a script to batch change the name of my art boards to the name of the only layer in that art-board. Is this possible in Photoshop? (I know it is in Illustrator)

Thanks!

This topic has been closed for replies.

2 replies

SuperMerlin
Inspiring
June 8, 2018

If there are just artboards and no layersets you could try...

var count = activeDocument.layerSets.length;

for(a=0;a<count;a++){

activeDocument.layerSets.name = activeDocument.layerSets.layers[0].name;

}

sidpalas
Inspiring
June 8, 2018

Yes, this is possible in Photoshop.

As far as I can tell, ExtendScript treats an ArtBoard like a regular LayerSet. Do you have an Illustrator Script you are working with as a starting point?