Michael L Hale wrote:
The short answer is no, you can not access the text transform value using the DOM. The snarky answer is actionDescriptor, actionReference, etc are DOM objects and executeAction is a DOM method so you can.
Ok, fair enough. Is the documentation on what's available to do pretty much exclusively here and on ps-scripts, or is there actual documentation somewhere that I somehow haven't found on what actions are available and what properties they take? I modified the above script to take a layer by name and just sort of had to guess at what to put in (I'd assumed that I wanted to use 'LyrN' instead of 'Lyr ' but was wrong, for example); I'd like to get deeper into scripting Photoshop in clever ways but it seems a lot like trial and error (especially since the error you get is something to the effect of, "something went wrong or maybe this version of Photoshop doesn't support what you were trying to do"). Thankfully the iteration loop isn't too long but it sure would be nice to be able to use var declarations in the console.
Edit: oh sorry, it wasn't the above script that I edited but it was one similar that showed how to get the actual text size from the reported size * transform.yy.