Script to rename artboard from text layer
I found a partial bit of the script to rename artboards from a text layer however if you want to apply the script to multiple boards you have to do it one by one. My question is how would I alter this to make it cycle through all artboards?
if (activeDocument.activeLayer.parent.typename == "LayerSet")
activeDocument.activeLayer.parent.name = activeDocument.activeLayer.name;
Credit to r-bin
