Bruner
Bruner

Reputation: 43

Creating a installation package for an Indesign JavaScript

Not sure if the heading is clear enough for what I am looking to do. But here's the explanation:

I have a .jsx file, which does something. I want to create a setup file for mac and pc, just like we have .jar, .exe, .dmg. When the user installs this package, my script abc.jsx should automatically be placed inside the Adobe InDesign CS5/Scripts/Scripts Panel folder, but the user should never be able to view the code of abc.jsx (obviously because if they do, then my script is no longer my own work, but available for everyones use).

I've seen that you can create setup files for your Java programs, but is there a way to do it for .jsx files, which are primarily Adobe ID Scripts? I'm more of a web guy, with some ID skills, so I don't know how to go about this.

Thanks

Upvotes: 0

Views: 531

Answers (2)

bgmCoder
bgmCoder

Reputation: 6370

If you want an installable setup, you need to use a setup compiler like Inno, which is free and awesome.

I recommend you have the setup install your script to the user's InDesign roaming directory, such as: C:\Users\someuser\AppData\Roaming\Adobe\InDesign\Version 7.0\en_US\Scripts\Scripts Panel

To obfuscate the code, do as Anna Forrest suggests and compile it to .jsxbin.

Upvotes: 0

Anna Forrest
Anna Forrest

Reputation: 1741

To protect your source code - compile it as a .jsxbin file. Once you have a .jsxbin a simple bat file (or whatever the equiv is on a mac) can simply copy/paste the .jsxbin to the correct location.

Upvotes: 1

Related Questions