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

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

New Here ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

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!

TOPICS
Actions and scripting

Views

660

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
Adobe
Explorer ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

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?

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
Guide ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

LATEST

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;

}

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