Copy link to clipboard
Copied
I am trying to convert a photoshop action to a script so I can replace the filename in save steps with the variable for the current photoshop document but I cannot seem to convert my ATN file to an XML file in order to code this.
I tried using the script and steps listed here: What is an ATN File?
but I keep getting an error message when opening the script in photoshop. Am I missing a step? Please help!
On a mac using Photoshop 2021 for reference.
Error message:
Error 8: Syntax Error
Line: 35
-> var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
1 Correct answer
Explore related tutorials & articles
Copy link to clipboard
Copied
It sound like you are referring to Xtools apps. I believe the script you should use is "ActionFileToJavascript.jsx" to convert an Action to a photoshop script that you can then add logic into it to name output files with an appropriate file name. I have not user XTool script is some time I would think they should still work work even though they are 5 years old.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thank you! Yes it seems the version I was trying to use was outdated and I couldn't find the most updated one.
This worked!!!
Copy link to clipboard
Copied
The code from error you posted is common for javascript when creating websites, not for extenscript for Ps.

