Skip to main content
Inspiring
March 21, 2023
Answered

How to convert JSX file to ATN file for deployment purpose?

  • March 21, 2023
  • 2 replies
  • 1660 views
I am writing a photoshop script file in jsx format. I want to give it to n number of end users. But they can modify the copyright information and moreover can read the script. So I am planning to convert the script in ATN (action) format. Is there any tool to do it?

I googled a lot and found some utilities over https://ps-scripts.sourceforge.net/xtools.html#Anchor-Toolki-19514  . There is an option to generate atn file from xml file. But there is no option to generate an atn file from jsx. Is it possible to convert jsx to xml and then to atn?

Has anyone tried this earlier? Does it work? Or any other option is available?

Thanks in advance.

This topic has been closed for replies.
Correct answer Stephen Marsh

An action provides no more/less security.

 

What you can do to to help to try 'protect' your IP is save the .jsx as a .jsxbin from either VS Code ExtendScript Debugger (right click - export as binary) or the old 32 bit ExtendScript ToolKit (not 100% secure, but 'good enough' for most).

 

EDIT: You may also find the following helpful, or at least interesting:

 

https://www.davidebarranca.com/2016/07/html-panel-tips-22-protecting-your-code/

 

https://www.davidebarranca.com/2017/02/html-panel-tips-23-javascriptobfuscator-api-gulp-js-plugin/

2 replies

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
March 21, 2023

An action provides no more/less security.

 

What you can do to to help to try 'protect' your IP is save the .jsx as a .jsxbin from either VS Code ExtendScript Debugger (right click - export as binary) or the old 32 bit ExtendScript ToolKit (not 100% secure, but 'good enough' for most).

 

EDIT: You may also find the following helpful, or at least interesting:

 

https://www.davidebarranca.com/2016/07/html-panel-tips-22-protecting-your-code/

 

https://www.davidebarranca.com/2017/02/html-panel-tips-23-javascriptobfuscator-api-gulp-js-plugin/

Inspiring
March 21, 2023

Thanks a lot for your help! I will research further about how to convert the jsx to jsxbin. I have installed the VS Code ExtendScript debugger, but not able to get the convert option. Will see later. Thanks for the clue.

c.pfaffenbichler
Community Expert
Community Expert
March 21, 2023

As JavaScripts can contain functionality that is impossible in Actions this seems to be a non-starter. 

Besides that: Photoshop users can edit, rename, … Actions as well, so I am not sure you would achieve much. 

 

In ExtendScript Toolkit one could export as binary, but I don’t know if Visual Studio Code offers the same option/s. 

Inspiring
March 21, 2023

Thanks a ton for your kind reply!