Skip to main content
Participating Frequently
October 13, 2023
Question

Script can't work in Photoshop2024(25.0), but perfect work in Photoshop 2018 ~ 2021(22.2)

  • October 13, 2023
  • 2 replies
  • 507 views

During the period of using Photoshop 2018,
I wrote the Script myself and executed it,
In Photoshop2018 ~ 2021,
This script can be executed correctly.

Works perfectly correctly and is used all the time.


But this script cannot be executed correctly on Photoshop2023 and Photo2024.

I wonder if there are any masters who can help me to clear up my doubts?

 

Thanks a lot.

 

Can't work Script:

  function step37(enabled, withDialog) {
    if (enabled != undefined && !enabled)
      return;
    var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
    var desc1 = new ActionDescriptor();
    var ref1 = new ActionReference();
    ref1.putEnumerated(cTID('Mn  '), cTID('MnIt'), sTID("toggleShowExtras"));
    desc1.putReference(cTID('null'), ref1);
    executeAction(sTID('select'), desc1, dialogMode);
  };

 

This topic has been closed for replies.

2 replies

Legend
October 13, 2023

You didn't write this yourself, and nobody can help you without the entire script and an explanation of what you are doing and what the errors are.

Participating Frequently
October 13, 2023

Thanks for your reply

Yes, action converted to a script.

Use 「ActionToJavascript.jsx」 to converted it.

 

And I tried to use the method Stephen_A_Marsh mentioned to re-convert the script on the new version of Photoshop.


I found that it was not a script problem.

Stephen Marsh
Community Expert
Community Expert
October 13, 2023

Looks like an action converted to a script via xtools.

 

 If so, try converting in a later version and see if the code is working there.

Participating Frequently
October 13, 2023

Tanks for your reply.

 

Yes, action converted to a script.

Use 「ActionToJavascript.jsx」 to converted it.

But the tool on github page not has new version...

Would you know any other tools?

Stephen Marsh
Community Expert
Community Expert
October 13, 2023

But does running the script in the new version of Photoshop create different/updated code appropriate for the new version of Photoshop?

 

What is the exact action steps that need to be converted or perhaps written directly in script code without conversion from action?