Skip to main content
e-onn
Inspiring
May 8, 2024
解決済み

Convert photoshop atn to jsx

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 

このトピックへの返信は締め切られました。
解決に役立った回答 Davide_Barranca12040269

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:

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.

 

返信数 1

Stephen Marsh
Community Expert
Community Expert
May 8, 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.

Davide_Barranca12040269
Legend
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:

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 authorwww.ps-scripting.com
Inspiring
May 11, 2024

@Davide_Barranca12040269 

 

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? 


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.