Rename layer with document name

I looked on the forum and couldn’t find any information, there is a way to rename the layer with the name of the document in use.

app.activeDocument.layers[0].name = app.activeDocument.title

Obviously, you can target a layer in a number of different ways.

1 Like