The ScriptingListener plug-in
The ScriptingListener plug-in can record JavaScript to a log file for any operation which is actionable.
Install the ScriptingListener plug-in:
Quit Photoshop.
Download the ScriptingListener plug-in package. This package contains the ScriptingListener plug-in in the “Utilities” folder, scripting documentation, and sample scripts.
- Windows:
Scripting Listener Plug-in for Windows - macOS:
Scripting Listener Plug-in for macOS (Photoshop 2020 and later)
Scripting Listener Plug-in for macOS (Photoshop 2019 and earlier)
- Windows:
After you download the ScriptingListener plug-in package file above, double-click it to decompress it. If asked, extract all the files.
After you unzip the package, you will see three folders:
- Documents
- Sample Scripts
- Scripting Utilities
Copy the Utilities folders to the Photoshop plug-ins folder:
Windows:
Program Files\Adobe\Adobe Photoshop [version]\Plug-ins\
macOS:
Applications\Adobe Photoshop [version]\Plug-ins\
Relaunch Photoshop.
After installing the ScriptingListener plug-in, steps you perform are recorded as JavaScript to the ScriptingListenerJS.log on the Desktop.
For information on the Photoshop Scripting SDK and using the ScriptingListener Plug-in, see the Photoshop Developer Center.