Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
3

Unable to record actions that run scripts in 25.7.0

Explorer ,
May 03, 2024 May 03, 2024

Copy link to clipboard

Copied

I have a lot of photoshop actions that run javascript files. They all still run fine in 25.7 but I'm unable to record any new ones. If I record a new one and attempt to run it I get an error "Could not complete the command because Photoshop was unable to find the JavaScript file." 
When I twirl open the details on the "Scripts" action step, it has the correct "File: path/to/file" but unlike in older actions I've recorded there is now a Name:"" (empty quotes). I'm assuming this is what's causing the problem. 
I'm not positive if this behavior changed in 25.7.0 with the new action export changes, or if I just hadn't noticed and it'd been a minor version or two since I'd tried. 

TOPICS
macOS

Views

912
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Dec 17, 2024 Dec 17, 2024

Necro-ing my own thread here a bit, but I just figured out why you weren't seeing it. I thought they'd fixed the issue but I just ran into it again in a way that prompted me to test, as I recorded a two step action and one script was fine and the other one wasn't (had this Name: ""). By commenting out the entire problem file and uncommenting one section at a time I was able to isolate the determining factor as being: 

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

 Scripts that have this line are recorded with the

...

Votes

Translate
Adobe
Community Expert ,
May 03, 2024 May 03, 2024

Copy link to clipboard

Copied

What version of macOS are you using?

 

If you go to Apple>System Settings>Privacy & Security>Full Disk Access, is Adobe Photoshop listed?

 

Another thing to try is a reset of the Photoshop preferences:

https://helpx.adobe.com/photoshop/using/preferences.html

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 06, 2024 May 06, 2024

Copy link to clipboard

Copied

I am on macOS 13.6.6, which is the latest version of Ventura. Haven't taken the plunge on Sonoma yet. 

Photoshop did not have Full Disk Access enabled. I enabled it and restarted and it did not make a difference. 

 

Would rather not reset preferences as of yet as it definitely seems to be a bug introduced in the latest program version since it was working fine until last week when I updated it. 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 03, 2024 May 03, 2024

Copy link to clipboard

Copied

This has recently come up on the forum at least once before.

 

Can you share a copy of an action with this issue, even if that is the only step.

 

You may need to install the script files in the apps presets/scripts directory and record their execution that way rather than using browse.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 06, 2024 May 06, 2024

Copy link to clipboard

Copied

Hi Stephen, I tried to attach one but ironically adobe doesn't allow .atn files to be attached, despite having a rather impressive list of other files that can be.. 
Attaching a screenshot of it the actions panel in the meanwhile. 

Is this not the correct place to submit bugs directly to Adobe? Appreciate y'all trying to help, but this seems like an issue in their court.

 

Edit to add: also all my dozens of existing actions work fine so I'd rather not move my folder of hundreds of scripts into Presets / Scripts. 

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 06, 2024 May 06, 2024

Copy link to clipboard

Copied

That "helper" second line is the issue that I can't replicate on my system. Adobe have added similar to actions in the past but this is the first time with scripts. With no official word it's unknown.

 

What if you record browse to the desktop rather than Dropbox?

 

Otherwise install the script in the presets/scripts folder so that it can be recorded directly from the scripts menu without using browse.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 06, 2024 May 06, 2024

Copy link to clipboard

Copied

I tried recording it with it on the desktop, which made no difference. I then tried with it in the presets/scripts folder which does indeed work, and the "name" field is filled in with the filename. Hoping an Adobe employee sees this and can get this on the list of things to fix as, again, this was not the behavior until the latest version and very much seems like a bug. 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

Necro-ing my own thread here a bit, but I just figured out why you weren't seeing it. I thought they'd fixed the issue but I just ran into it again in a way that prompted me to test, as I recorded a two step action and one script was fine and the other one wasn't (had this Name: ""). By commenting out the entire problem file and uncommenting one section at a time I was able to isolate the determining factor as being: 

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

 Scripts that have this line are recorded with the ' Name: "" ' bit and cannot be run. If you comment out this line, record the script into the action, then uncomment it, your action will work fine. 

I'll report this bug to Adobe, but wanted to also post this workaround here in case anyone else happens to stumble upon this. 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2024 Dec 17, 2024

Copy link to clipboard

Copied

LATEST

@alexanderl16240166 

 

Thanks for the update!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 03, 2024 May 03, 2024

Copy link to clipboard

Copied

It appears to be a Mac-specific issue. I just tested it, and everything functions correctly on Windows; the script name is recorded as part of the action step and will call the appropriate script upon execution.

action step javascript.jpgexpand image

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 03, 2024 May 03, 2024

Copy link to clipboard

Copied

@Bojan Živković â€“ I'm on an Intel Mac Monterey OS and with 25.7.0 there is no problem for me recording a browsed script on a local drive path... So we may need to isolate this a bit deeper.

 

@alexanderl16240166 â€“ What OS and chipset (Intel, M1 etc) are you running?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 03, 2024 May 03, 2024

Copy link to clipboard

Copied

Here is the other topic that I have seen from another Mac user, same issue.

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/some-scripts-not-running-from-action/...

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 05, 2024 May 05, 2024

Copy link to clipboard

Copied

I'm having a similar issue. A simple script of Replace Content seems to not work anymore:

function replaceSmartObjectContent(layer, file) {
    var idplacedLayerReplaceContents = stringIDToTypeID("placedLayerReplaceContents");
    var desc = new ActionDescriptor();
    desc.putPath(charIDToTypeID("null"), new File(file));
    executeAction(sTID('placedLayerReplaceContents'), desc, DialogModes.NO);
}

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 05, 2024 May 05, 2024

Copy link to clipboard

Copied

@Julian315683138kub 

 

Does the action recording using browse record the second line for file?

 

If not, then it would appear to be a totally different issue and a new, separate topic should be created to correctly diagnose and address your specific issue.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines