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

Action File to XML script not working

New Here ,
Jul 22, 2021 Jul 22, 2021

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;

TOPICS
Actions and scripting , macOS , SDK
1.3K
Translate
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

Community Expert , Jul 22, 2021 Jul 22, 2021

You need a more updated version of xtools from here:

(version 2.3 is the one you want)

 

xtools

 

 

Screenshot-(204).pngexpand image

Translate
Adobe
Community Expert ,
Jul 22, 2021 Jul 22, 2021

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.

JJMack
Translate
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 ,
Jul 22, 2021 Jul 22, 2021

@Bex5E99 

 

Why not share the action file so that others can try converting it?

Translate
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 ,
Jul 22, 2021 Jul 22, 2021

You need a more updated version of xtools from here:

(version 2.3 is the one you want)

 

xtools

 

 

Screenshot-(204).pngexpand image

Translate
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 ,
Jul 23, 2021 Jul 23, 2021

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!!!

Translate
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
LEGEND ,
Jul 23, 2021 Jul 23, 2021
LATEST

The code from error you posted is common for javascript when creating websites, not for extenscript for Ps.

Translate
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