JSXGetURL for InDesign Server

What does it do?

JSXGetURL for InDesign Server enhances ExtendScript in InDesign Server to make it easy to access servers using httphttps, sftp… – e.g. to download assets from a remote server.

Download link:

https://www.rorohiko.com/downloads/JSXGetURL.1.0.7.zip

Initially, JSXGetURL operates in demo mode, allowing up to 5 consecutive transfers after an instance restart. To continue using the service beyond this limit, activation is required by way of the License Manager (see further).

This version is only for InDesign Server. We also have a version for Creative Cloud desktop applications.

We provide commercial training and developer support around JSXGetURL: if you need help integrating JSXGetURL into your custom solution, contact us at [email protected] to discuss training and support contracts.

Sample Code

JSXGetURL works on Mac and on Windows.

All you need to do is copy the JSXGetURL folder to sit alongside your own ExtendScript script, and then add an //@include line at the top of your script.

Sample code:

//@include "JSXGetURL/JSXGetURLLoader.jsx"
var getURL = JSXGetURL();

getURL.addRequestHeader("Accept: */*");
var s = getURL.get("https://www.rorohiko.com") + "";

alert(s.substr(0,1000));

var headers = getURL.getResponseHeaders();
alert(headers);

// Some random FTP file for testing

var f = new File("~/Desktop/sha512.sum");
var s = getURL.get("ftp://cygwin.com/pub/gcc/sha512.sum", f.fsName);

// Some zip file to test binary file download

var f = new File("~/Desktop/FrameReporter.1.1.8.zip");
getURL.get("https://www.rorohiko.com/downloads/FrameReporter.1.1.8.zip", f.fsName);

JSXGetURL is implemented as an ExtendScript DLL/framework, written in C/C++.

License Manager

The License Manager is provided in the Helpers subfolder.

You may relocate it to a convenient location (e.g., /Applications or C:\Program Files).

After downloading, and each time you move the License Manager application to a different location on your computer, you need to launch the app once, so it can reconfigure itself.

Demo

Run sample.jsx alongside the JSXGetURL folder from an InDesign Server instance.

Installing JSXGetURL

Copy the JSXGetURL subfolder to reside next to your own script (.jsx). Look at the sample.jsx file for example code.

Modify your script and at the top, add a line

//@include "JSXGetURL/JSXGetURLLoader.jsx"

Then model your transfer logic by mimicking the code you see in sample.jsx, to perform the transfers you need.

Installing License Manager

Mac

If desired, move the LicenseManager application file to its desired location.

Double-click the LicenseManager application icon to run the app from its current location at least once.

Windows

If desired, move the LicenseManager folder for your Windows platform (arm64 vs x86_64) to its desired location.

Navigate into the LicenseManager folder and double-click the LicenseManager.exe icon to run the app from its new location at least once.

Activating

Standard Account

You need a Standard Account to activate the software.

Start the License Manager.

Create a standard account by clicking the New button, bottom right of the Accounts window.

Enter a descriptive name and a valid email address, and choose an unlock code. You need to enter the same unlock code twice.

Click OK.

After the account has been created, click Register to register the account.

You will receive a confirmation email with a confirmation link.

If the email does not arrive, make sure to check your email spam filter!

Save Unlock Code

On the Accounts window, there is a checkbox Save Unlock Code.

If you’re on a secure personal computer, you should select your account, then tick the box to save the unlock code.

If you don’t save the unlock code, you will need to re-enter the code each time you start the License Manager, and you will need to keep License Manager active each time you want to access JSXGetURL.

Multiple Accounts

You can create as many accounts as needed.

It is allowed to re-use the same email address and unlock code for multiple accounts.

If you do re-use the same email address for more than one account, they become hard to distinguish. Make sure to use good descriptive names, so you can tell the accounts apart.

For example, you might use one account that you keep for your own personal use, and one or more additional accounts that you could use for ordering embeddable JSXGetURL activations to pass on to your customers or colleagues.

Always make sure your account is unlocked. If you did not save your unlock code, you will need to re-enter the code if the account is locked.

Fetch Product Info

Now we need to add the product information for the software to be activated into the License Manager.

Use the Store window in the License Manager, and browse into the Rorohiko Catalog.

Click the entry for the desktop version of JSXGetURL to open the Order a License window in the License Manager.

Create an Order

Enter the number of seats needed.

Type in some order reference that will have relevance to you.

Finally, if you have multiple accounts available, you will now need to select the correct account from the popup menu.

Then click the Save button.

This creates a License Request file (.lirq file name extension).

Send us your order

Attach this .lirq file to an email to mailto:[email protected].

In your email, make sure to mention any additional details that might be relevant or useful (e.g. let us know if you prefer us to send you a PayPal invoice).

Payment

Payment processing is not yet automated – you need to manually send payment of US$949/server-machine using PayPal, to [email protected].

With your payment, make sure to mention the order reference that you used in the License Manager, so we can match your payment to the order info embedded in the License Request.

    https://www.paypal.com

Activation File

Once we have received your payment, we will email you an activation file for the order, which will have a .capb file name extension. Again, make sure to check your email spam filter!

Start the License Manager and go to the Licenses, Activations and Pending Orders window.

Click Import and import the .capb file.

The License Manager will match this activation file to the outstanding order.

Activate

In the Licenses, Activations and Pending Orders window you can now select the order entry and click the Activate button to activate your workstation.

The 5-transfer limit will now be removed from JSXGetURL.

Sublicensing/auto-activation

You might want to embed JSXGetURL into your own commercial software, or have JSXGetURL auto-activate so the end-user does not have to handle any activations. To achieve this, you can embed activation info into your source code or provide it as a side-car file.

Please consult the README.md document provided with JSXGetURL.

Version History

Version 1.0.7, 21-Feb-2024: Fixed an issue with the License Manager unable to activate selection

Version 1.0.6, 20-Feb-2024: Fixed an of issue with sublicensing using sidecar files

Version 1.0.5, 19-Feb-2024: Fixed a number of issues with sub-licensing and sidecar activation files.