Answered
copy the layer name to the clipboard uxp
copy the layer name to the clipboard uxp
in java the command was this:
var doc = activeDocument;
var aLayer = doc.activeLayer.name;
var d = new ActionDescriptor();
d.putString(stringIDToTypeID("textData"), aLayer);
executeAction(stringIDToTypeID("textToClipboard"), d, DialogModes.NO);
in uxp I tried this and it doesn't work,
const { app } = require("photoshop");
const doc = app.activeDocument;
const activeLayer = doc.activeLayer.name;
const layerName = activeLayer.name;
clipboard.writeText(layerName);any ideas?
