Skip to main content
Inspiring
April 26, 2024
Question

Some scripts not running from action

  • April 26, 2024
  • 6 replies
  • 665 views

I have a script created with Extendscript

It runs if I browse to it and run

When I create an action

>Run Script

 File: /User......./Script.jsx

Name: ""

When it adds the Name: "" I get a script can. not be found meassage

 

Other scripts setup without the Name:"" line and run fine

Any Ideas

This topic has been closed for replies.

6 replies

alexanderl16240166
Inspiring
December 17, 2024

I was also having this issue, and your thread was referenced from my thread, wanted to post here in case it helped you or anyone else that I've determined the cause in my case was having 

app.doAction("action","set");

in the script. If you comment that out temporarily to record it it records fine. There may be other "problem" lines that also trigger this, so if you weren't scripting an action, just comment your entire file, record it as a step, then uncomment it and it should continue to work fine. Unideal, but better than not being able to record it, or having to rearrange your entire file organization to put things in the Presets / Scripts folder. 

Legend
May 5, 2024

Works fine here. Just tested. M1/Sonoma.

SteveLancAuthor
Inspiring
May 6, 2024
Update.. I found that if I somehow opened two instances of PS running some
would not work. I went to Activity Manager and closed one and no issues.

I believe two instances opened during a period of power outages.

Who knows.

Thanks for comments.

Steve Lancashire
704-957-3123
Stephen Marsh
Community Expert
Community Expert
May 4, 2024

@SteveLanc 

 

What Mac OS version and chipset (Intel, M1 etc) are you running?

 

Another Mac user has the same issue here:

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/unable-to-record-actions-that-run-scripts-in-25-7-0/td-p/14597432

 

I'm on an Intel Mac running Monterey and I have no problems.

Legend
April 27, 2024
How did you run the script while recording the Action?
It looks like it's through some kind of extension.
 
 
 
Stephen Marsh
Community Expert
Community Expert
April 27, 2024

@SteveLanc 

 

I can't reproduce this when using File > Scripts > Browse... recorded into an action, it only records the 1 line for the File, without the offending 2nd Name line as per your screenshot.

 

As the others have commented, you can alternatively install the script into the Application's Presets/Scripts directory and record the installed script from the File > Scripts menu.

Legend
April 26, 2024

What happens if you put the script into the Photoshop scripts folder?

c.pfaffenbichler
Community Expert
Community Expert
April 27, 2024

To expand on @Lumigraphics ’ post:

If you placed the Script in the »proper« location can you use »Insert Menu Item« from the Actions Panel’s flyout menu to insert it in the Action?