Skip to main content
Known Participant
Mar 19, 2025 10:18 PM UTC
Question

Photoshop scripting with AI?

Hi all. Have any of you tried this? I'm a total JavaScript noob but want to create scripts. I asked ChatGPT to help. It wrote code but when I execute it it usually errors out. It seems to know the dictionary for the app but haven't been successful. Thanks!

2 replies

Legend
Mar 20, 2025 1:30 PM UTC

AI is not a replacement for actual knowledge. You'll probably want to start learning to actually code.

https://developer.adobe.com/photoshop/

Translate
Stephen Marsh
Community Expert
Community Expert
Mar 20, 2025 12:14 AM UTC

To start, it begins with the prompt content, and the LLM "AI" of choice will also affect the outcome (training data, logic etc).

 

Sometimes a LLM can create 100% usable code with no errors.

 

Sometimes it may invent/hallucinate one key entry which then breaks the entire script.

 

Photoshop traditionally used ExtendScript, which is an early, antiquated form of ECMAScript/JavaScript.

 

Now things are moving forward with UXP scripting, which is based on modern JavaScript.

 

The two don't mix.

 

It varies. It's a tool, the more you know, the better, it can't always be relied upon to know the nuances. 2-3 years ago it was almost unusable for Photoshop, today, it's much better.

Translate