Copy link to clipboard
Copied
Documentaion is minimal at best , but...
Why is there no document.activeLayer property in .PSJS?
Is it because there can be more than one selected active layer? In which case which one is zero indexed? Or have the Adobe developers just decided to make everything even more difficult?
Copy link to clipboard
Copied
app.showAlert (app.activeDocument.activeLayers[0].name);
Copy link to clipboard
Copied
That's right that'll show (alert) the active layers as a collection, but the fact that the heavily relied upon use of activeLayer is now going to be swept under the carpet, without mentioning that it's now missing or here's how it's done nowadays from the documention is increadibly frustrating.
Copy link to clipboard
Copied
As for the quality of the documentation Adobe does provide … well, less said might be better.
If you really want to pursue UXP Scripting you might want to look into buying @Davide_Barranca ’s book/s.
Copy link to clipboard
Copied
I'm aware of Davide's book and it may come down to that.
...until then I'll try and stick with good old Photoshop ECMA script.