Hi, you can grab the most up-to-date version from your Gumroad's account (in the file I have the DOM starts at 60 and ActionManager is 121-189). I think you can use the current file's path, which you can get with `app.activeDocument.path` as a string. As for additional content, I've invested the last year working on UXP (see here). Things might seem a bit complicated, but the TL;DR version is as follows: UXP is going to be "the" way to build plugins ("plugin" now is a general term that replaces "panels", "extensions", etc) UXP uses a modern JS engine (Google's V8) and not the ExtendScript engine Alongside with UXP, a brand new Photoshop API is being built (i.e. a new, backward non-compatible DOM) This new Scripting API (based on the modern V8 JS engine) is accessible only within UXP plugins at the moment—it will be available to standalone scripts too, in the future Outside of the context of UXP plugins, you can still rely on good old ExtendScript, for a number of years. In this new Photoshop API (which to me is a synonym for Scripting API) the DOM is still a work-in-progress, not yet complete (if you ask me, it won't be for a year or two at least). What do we do when the DOM isn't available in Photoshop? We use ActionManager. Alas, ActionManager in UXP is now called BatchPlay, and it has a new, JSON-based syntax. Although the structure is the same, and most of the times (i.e. ~90% of the cases) it is possible to transpile ActionManager to BatchPlay with some remarkable exceptions (e.g. when doing stuff like saving files) Given 1-8, I've decided to allocate most of my time looking forward, to UXP and the new PS API. As a matter of fact, ExtendScript is not going anywhere for a number X of years (where X is known only by Adobe, and maybe still TBD), and the ActionManager chapter in the Pro PS Scripting book still is the only available source of information, quite useful to UXP/BatchPlay devs. If you want to catch up with the current state of affairs with UXP, the new PS API etc. there's a free video series that I've published on youtube. I plan to write a Pro PS Scripting 2ED (which will be a complete re-write, given the nature of the content), but it won't appear until 2023 I'd say—mostly because the API are still evolving at a fast pace and shooting a moving target is frustrating. As a side note, I assume you're on Windows, because on recent macOS versions ESTK is bricked, and we can only use VSCode 🙂 Cheers, —Davide
... View more