Skip to main content
Known Participant
February 8, 2024
Answered

Convert action to script

  • February 8, 2024
  • 1 reply
  • 1827 views

Can action be converted into a script?

Correct answer Stephen Marsh

I don't know how to use xtool


A support file is missing. Download the entire repo from GitHub as a .zip, then decompress/unzip to a folder in any location. From there use Photoshop's File menu > Scripts > Browse:

 

/xtools v2.3/apps/ActionFileToJavascript.jsx

 

or

 

/xtools v2.3/apps/ActionToJavascript.jsx

 

1 reply

Stephen Marsh
Community Expert
Community Expert
February 8, 2024

Yes it may depend on the action steps, so YMMV...

 

For legacy ExtendScript .jsx scripts:

 

Using the xtools script, one can convert an .ATN file to .JSX file (ActionFileToJavascript.jsx or ActionToJavascript.jsx). Or one can convert an .ATN file to .XML (ActionFileToXML.jsx), edit it in a plain text editor, and then convert it back to an .ATN (ActionFileFromXML.jsx).


For the new UXP based .psjs one can enable the "Developer Mode" in preferences where there are multiple native methods to record the batchPlay code, or one can use the third-party Alchemist add-on.

 

MJ STAuthor
Known Participant
February 8, 2024

I didn't install any software, just loaded this script. error occurred again

MJ STAuthor
Known Participant
February 8, 2024

I don't know how to use xtool