Compile JS to binary

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

yogiyang

Compile JS to binary

Post by yogiyang »

I have developed 7 scripts with a lot of efforts. Now I want to distribute them but I want to lock the scripts so that the user cannot tamper with it.

Is it possible to compile JavaScript to some binary format? After compiling the script should run in all versions of PS from CS1 to the latest version.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

txuku

Compile JS to binary

Post by txuku »

Hello yogiyang

CS and CS2 does not support jsxbin ....

for CS3 I do not know.
yogiyang

Compile JS to binary

Post by yogiyang »

Hello,

The problem is that I am able to create/export jsxbin file using ESTK2 but then I can't execute it in Photoshop CS3.

How to do this?
Mike Hale

Compile JS to binary

Post by Mike Hale »

From my experience you need to compile in CS3 if you want to support CS4 or CS5. Even then it sometimes doesn't work in other versions or on a different OS from the one it was compiled on. IMHO binary is still not ready for prime time even after 3 product cycles.

But having said that I myself can not remember a time with a compiled jsx wouldn't run on the same version and OS it was complied on.
yogiyang

Compile JS to binary

Post by yogiyang »

Mike Hale wrote:But having said that I myself can not remember a time with a compiled jsx wouldn't run on the same version and OS it was complied on.
I am not saying it is not running. What I am saying is that after exporting a script as binary I am not able to run it in CS3.

Usually what I basically do with jsx files is that just drag and drop them on CS3 and they are executed directly but in case of .jsxbin file I get error message from CS3.

So how can I run the script (.jsxbin) in CS3?
Mike Hale

Compile JS to binary

Post by Mike Hale »

Try changing the extension from jsxbin to jsx.
yogiyang

Compile JS to binary

Post by yogiyang »

Mike Hale wrote:Try changing the extension from jsxbin to jsx.
Thanks a load. This did the trick.