How Photoshop Scripting Works
Photoshop can be driven by code in two ways, and knowing which one you are using saves hours of confusion.
ExtendScript (.jsx files). This is the scripting engine Photoshop has shipped for many years, and it is what this guide uses. You run a .jsx file from File → Scripts → Browse…, and it executes inside Photoshop with full access to the open documents. ExtendScript is JavaScript, but an old dialect (roughly the 1999 standard).
