Code: Select all
app.activeDocument.selection.copy()
I want to create panel with icons copy and paste layer. How to get if layer or group is not selected?
Code: Select all
app.activeDocument.selection.copy()
Code: Select all
activeDocument.suspendHistory('', ''), sTT = stringIDToTypeID;
(ref = new ActionReference()).putProperty(sTT('historyState'), sTT('currentHistoryState'));
(dsc = new ActionDescriptor()).putReference(sTT('null'), ref), executeAction(sTT('delete'), dsc)