UPDATE: Jun 24, 2024 – JSXGetURL 0.1.0 has been released. Visit
What is it?
JSXGetURL enhances ExtendScript to make it easy to access servers using http or https – e.g. to download assets from a remote server.
JSXGetURL is meant to work with any Adobe Creative Cloud application that has ExtendScript support – InDesign, InDesign Server, InCopy, Illustrator, Photoshop…
JSXGetURL is implemented as an ExtendScript DLL/framework, written in C/C++.
This DLL allows you to access URLs (including
ftp:) straight from ExtendScript.
There is nothing to install – all you need to do is
.jsx file which then loads the DLL.
//@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);
The last few weeks, I put a fair bit of work in updating JSXGetURL. Version 0.0.9 is now available:
- Added some simple functions to access request and response headers.
- M1 support on Mac
- Upgraded a bunch of dependencies. JSXGetURL now uses
- zlib 1.2.13
- Boost 1.81.0
- OpenSSL 3.0.7
- Curl 7.81.0
- Visual Studio 2019 on Windows
- Xcode 14.2
The .zip file contains a fully functional, time-bombed version of JSXGetURL – it will expire on 30-June-2023.
I am currently still working hard on the Tightener project, and by then I hope to have the licensing module in Tightener functional enough to handle a licensing scheme for JSXGetURL. I’ve tried to run JSXGetURL as a ‘sponsored/donationware’ project for a few years, but that has not worked. From June onwards, there will be some subscription fee to be paid for continuous use.