Question
Text layer duplicate and update layer name
So I've been having problems with duplicating text layers via scripts. In that the layer names are not automatically updating when the text content is changed.
if (app.activeDocument.activeLayer.kind == LayerKind.TEXT)
{
// duplicate text
var idCpTL = charIDToTypeID( "CpTL" );
executeAction( idCpTL, undefined, DialogModes.NO );
}
else
{
//. .. duplicate layer in prefered way...
}
Just thought I'd share the joy.
