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

How do I edit atn file externally in PS 2023

Participant ,
Aug 10, 2023 Aug 10, 2023

Copy link to clipboard

Copied

Hi,

I read a few old discussions regarding this, e.g. this one but either I am doing somethign wrong or, those methods do not work in new version of PS.

I need to adit a very long atn file which no longer works in PS 2023.

How can I edit atn file externallt in PS 2023.

I guess I need a new version of the tool which exports to xml and one which imports back as atn, unless there is a newer method.

 

I am using latest version of PS on windows.

Thanks

 

 

TOPICS
Actions and scripting , Windows

Views

1.8K
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

Community Expert , Aug 11, 2023 Aug 11, 2023

I don't do anything special, I just downloaded the entire xtools v2.3 and unzipped it, then in the apps folder run the script:

 

ActionFileToXML.jsx

 

Then to convert back:

 

ActionFileFromXML.jsx

 

That being said, I do most of my scripting in v2021 unless I need to work with a newer feature.

Votes

Translate
Adobe
Community Expert ,
Aug 10, 2023 Aug 10, 2023

Copy link to clipboard

Copied

For the most part, you are best forgetting that and just edit or re-record the steps in the Action panel.

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
Participant ,
Aug 10, 2023 Aug 10, 2023

Copy link to clipboard

Copied

I agree but this will not solve my issue. I have old actions which I once purchased and tehy stopped working.

Support for them dioes not exist, therefore I want to fix them myself and I believe I know what the problem is, only changing it in a huge number of places is not practical.

Therefor I need a way to edit the action as text and set back as action.

 

I found this: Converting an action to function which can be helpful.

I tested th emethod on small actions and it worked well. However on the large function which does not run i yes a system error which I ma unable to debug.
The above method provided a "Batch Play" action which is very hard to debug.

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
Engaged ,
Aug 10, 2023 Aug 10, 2023

Copy link to clipboard

Copied

the one in the video is an alchemist app convert actions for use with new uxp panels If you enable developer mode in photoshop preferences, you can directly convert actions with command copy as javascript from the actions panel

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
Participant ,
Aug 10, 2023 Aug 10, 2023

Copy link to clipboard

Copied

I'm very familiar with UXP. I created multiple plugins.

I can import the atn via alchemist and run it but it produces errors related to batch play. 

Probably some of the interpretation is not going through so well.

I can contact the developer but who know how long it will take to fix evey action.

Best if I could use the older methos which does not require batch play. 

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
Engaged ,
Aug 10, 2023 Aug 10, 2023

Copy link to clipboard

Copied

unfortunately when there are batch interventions i doubt that alchemist can help you, even if the creator change the action will not work because the batch is not yet inserted into the conversion, to make the batch work you need a clean script created from scratch in javascript.

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 ,
Aug 10, 2023 Aug 10, 2023

Copy link to clipboard

Copied

quote

I agree but this will not solve my issue. I have old actions which I once purchased and tehy stopped working.


By danl42831687

 

I know that editing or adding new replacement steps and removing the old ones manually is tedious for long actions, but it is the safest method.

 

Yes, xbytor's conversion tools are fantastic, but from memory, they don't always work on simple unedited roundtrip. So the first thing to verify is a simple ATN > XML > ATN conversion with no actual edits going to return a usable action. If it does, then you can look at edits.

 

I'm happy to convert the ATN to XML for you if you wish to contact me via PM, and convert it back after you edit.

 

That being said, what is the actual issue? Can you provide screenshots of the error message and the expanded action panel step when the error occurs?

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
Participant ,
Aug 10, 2023 Aug 10, 2023

Copy link to clipboard

Copied

Thank you.

Can you summerize to process of making the ATN=>XMl->ATN method and required tools in PS2023?

As mentioned on teh beginning of this thread i can't make the 'old' methoid work and since I have many sucj actions I'd rather not bother your with all of them.

In addition it will be a trial and error process to fix the ATN.

 

As for your second query, I believe I know what is the firts problem I encounter regarding the old actions.

The action duplicate a layer multiple times and then performs action on the copied layer.

It selects them by name.

I believe in older version of PS, when you copied a layer it would get a default 'different name'/

See here, layer are being copied:

danl42831687_0-1691736523468.pngexpand image

The above actions generate these layers:

danl42831687_1-1691736640099.pngexpand image

However, the action expects the copied layer to be: "layer 1", "layer 2", "layer 3" ..

As can be seen here:

danl42831687_2-1691736737008.pngexpand image

 

and this is exactly where the action fails with htis error:

danl42831687_3-1691736754426.pngexpand image

since it can't find "Layer 2". "Layer 2" is now called "Extract Copy 2"


 

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 ,
Aug 11, 2023 Aug 11, 2023

Copy link to clipboard

Copied

I don't do anything special, I just downloaded the entire xtools v2.3 and unzipped it, then in the apps folder run the script:

 

ActionFileToXML.jsx

 

Then to convert back:

 

ActionFileFromXML.jsx

 

That being said, I do most of my scripting in v2021 unless I need to work with a newer feature.

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
Participant ,
Aug 11, 2023 Aug 11, 2023

Copy link to clipboard

Copied

LATEST

Thnaks, it is working are you mentioned.

I did not realize I had to open the conversion scripts from PS.

 

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