Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
2

Convert photoshop atn to jsx

Explorer ,
May 08, 2024 May 08, 2024

I have a number of photoshop actions that i would like to convert to jsx.

What is the simplest way to do this, ?

I recall an atn to jsx conversation tool? a few years back but is there a simple way now.?

Thanks 

TOPICS
Actions and scripting
1.8K
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 2 Correct answers

Community Expert , May 08, 2024 May 08, 2024

For ExtendScript .JSX you still need to use a script from xbytor:

 

https://sourceforge.net/projects/ps-scripts/files/xtools/v2.3/xtools-2_3.zip/download

For UXP .PSJS one can convert to batchPlay code as a built-in feature when enabled in prefs.

 

It's one or the other, the two can't be mixed.

Translate
Engaged , May 10, 2024 May 10, 2024

Stephen's answer is the correct one—I'd also like to point out that you can use Alchemist by Jaroslav Bereza. People use Alchemist a ton, but few know it's actually a suite of helper plugins: Alchemist, Sorcerer and Occultist (I know...  Eastern-European humour 😁)

Occultist implements a custom ATN parser:

Davide_Barranca_0-1715352914061.png

It's rather handy and super-quick.
Anyway, probably the Czech Republic has to be considered part of Central Europe—Wikipedia says both definitions are acceptable. I'll ask Jarda.

 

Translate
Adobe
Community Expert ,
May 08, 2024 May 08, 2024

For ExtendScript .JSX you still need to use a script from xbytor:

 

https://sourceforge.net/projects/ps-scripts/files/xtools/v2.3/xtools-2_3.zip/download

For UXP .PSJS one can convert to batchPlay code as a built-in feature when enabled in prefs.

 

It's one or the other, the two can't be mixed.

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
Explorer ,
May 08, 2024 May 08, 2024

Thanks so much Stephen. will give it a go.

Appreciate the help.

ian

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
Explorer ,
May 08, 2024 May 08, 2024

Works super well.

Thanks again 

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 ,
May 08, 2024 May 08, 2024

Please remember to mark the Ā»Correct AnswerĀ«. 

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
Engaged ,
May 10, 2024 May 10, 2024

Stephen's answer is the correct one—I'd also like to point out that you can use Alchemist by Jaroslav Bereza. People use Alchemist a ton, but few know it's actually a suite of helper plugins: Alchemist, Sorcerer and Occultist (I know...  Eastern-European humour 😁)

Occultist implements a custom ATN parser:

Davide_Barranca_0-1715352914061.png

It's rather handy and super-quick.
Anyway, probably the Czech Republic has to be considered part of Central Europe—Wikipedia says both definitions are acceptable. I'll ask Jarda.

 

Davide Barranca - PS developer and author
www.ps-scripting.com
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
Explorer ,
May 10, 2024 May 10, 2024

Thanks Davide

 

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 ,
May 10, 2024 May 10, 2024

@Davide_Barranca 

 

Can you please comment on the differences, pros/cons or why one may decide to use Alchemist vs. Photoshop's native developer mode to convert an ATN to UXP batchPlay code? Forget everything else that Alchemist offers.

 

Edit: As an example in the context of "simple" UXP Scripting (not panels), one may have an action that performs operations and then successfully saves a JPEG to the desktop. The built-in feature to convert the ATN code to batchPlay code works for every step EXCEPT the save step! Does Alchemist provide working code for saving? 

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
Enthusiast ,
May 10, 2024 May 10, 2024

Stephen even if alchemist and oculist have a good method, you can't do everything, you can't salt a file on desktop with alchemist or occulist, unfortunately the Apple system requires permissions and session tokens which are codes that must be written separately. and not just to save the codes, for example if you want to insert an image from a path it can't be done, if you want to use adapt image and complicated and many other functions, After 4 years of uxp development it is still immature and the development team is unable to keep up with the requests of users and developers. Honestly in the future it will be reliable and simple but now it is a slow elephant.

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 ,
May 11, 2024 May 11, 2024

@Ciccillotto Thanks, it seems my role is to play devils advocate on this topic. Something with lots of documentation and examples in ExtendScript but next to nothing useful in UXP.

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
Enthusiast ,
May 11, 2024 May 11, 2024
LATEST

I agree with you little documentation and what little there is must be updated with each new photoshop update. Adobe with UXP got us into quite a messa. 

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