Copy link to clipboard
Copied
Here is a sample ExtendScript code of http access using external object.
Extend_Script_experimentals/HttpClient.jsx at master · ten-A/Extend_Script_experimentals · GitHub
Flame work and cpp code also available in my git.
Probably, we can make https client EO with OpenSSL.
Copy link to clipboard
Copied
So, how does this work with release scripts? Do the users have to download the httpclient framework and ensure it is installed on their machine?
Copy link to clipboard
Copied
This framework does not require installation, just download and put it on your drive and set absolute path in the HttpClient.jsx like below.
var libPath = "/Users/<YOUR_USER_NAME>/Desktop/HttpClient.framework";
Copy link to clipboard
Copied
So if I was going to make a script that could be distributed to users, is there a way to write this framework into their file system so they do not have to follow any download instructions, etc?
Copy link to clipboard
Copied
I usually distribute scripts and External Objects compressed together and tell the user to put expansion things together.
If you put it in the same folder as the script, it will be easier to reference External Objects from the script.
Copy link to clipboard
Copied
Okay, and is this for Mac only?
Copy link to clipboard
Copied
I don’t have Windows version yet. However, one of Japanese scripter ryusei kouki makes Windows version HTTP Client External Object last year.
Copy link to clipboard
Copied
Okay, do you mind producing a brief explanation of what an "External Object" could be? So far, it sounds like something that contains code that is platform-specific and is written in such a way that ExtendScript can read this file in and make use of it.
Copy link to clipboard
Copied
You can extend the JavaScript DOM for an application by writing a C or C++ shared library, compiling it for
the platform you are using, and loading it into JavaScript as an ExternalObject object. A shared library is
implemented by a DLL in Windows, a bundle or framework in Mac OS. (Referencing from JavaScript Tool Guide CC pp.200 Integrating External Libraries)
Sample projects also available in SDK/Samples/cpp under the ExtendScript Toolkit CC folder.
Copy link to clipboard
Copied
More sample available below.
OpenCVをExtendscriptで利用するなんとか… | CC Labo
Its Open CV wrapper External Object That provides face detection workflow in ExtendScript environment.
Copy link to clipboard
Copied
I know this is old, but any chance someone has the working code for windows? I'm a beginner, and I need help getting started. The face detection example is an excellent example of shared library usage.