This page is outdated. More recent info here:
https://www.rorohiko.com/jsxgeturl
Note: If you are using version 0.0.7 or below, it will have stopped working by now because it was time bombed on December 31 of the year. Please update to version 1.x.x (see link below).
I’ve been dabbling around with ExtendScript DLLs.
These little critters run within ExtendScript and allow me to enhance ExtendScript, for all apps that support it, including InDesign Server, on Mac and Windows.
I can add whatever functionality I decide to wrap into such a DLL.
Now, I’ve just finished wrapping the C++ libcurl
into such a wrapper. A full version can be downloaded here.
https://www.rorohiko.com/downloads/rr612412/JSXGetURL.0.0.9.zip
It runs till June 30 of this year.
There is nothing to install, no admin privileges needed. You just need to add a folder with a few .jsx files to your ExtendScript project, and you can simply write ExtendScript like:
#include "JSXGetURL/JSXGetURLLoader.jsx"
var getURL = JSXGetURL();
var s = getURL.get("https://www.rorohiko.com");
alert(s.substr(0,1000));
and this works in InDesign Server, ExtendScript Toolkit, Bridge, InDesign, InCopy, Illustrator or whatever else supports ExtendScript, and it works both on Mac and Windows. And it’s very fast because it’s all compiled C/C++ code.
As it is, this thing now kind of supersedes my old ventures (https://coppieters.nz/?p=133 which uses CEP/node as a ‘servant’ to ExtendScript, and does not work on InDesign Server, and https://rorohiko.blogspot.com/2013/01/geturlsjsx.html which was pure JSX, a subset of http
only, no https
).
Anyway: if you’re interested in this ExtendScript enhancement and have ideas or questions, contact me at [email protected]