Off Topic: External Object

Adobe Community Professional ,
Dec 09, 2017 Dec 09, 2017

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.

TOPICS
Scripting

Views

576

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 11, 2017 Dec 11, 2017

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 11, 2017 Dec 11, 2017

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";

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 12, 2017 Dec 12, 2017

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 12, 2017 Dec 12, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 13, 2017 Dec 13, 2017

Copy link to clipboard

Copied

Okay, and is this for Mac only?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 13, 2017 Dec 13, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 14, 2017 Dec 14, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 14, 2017 Dec 14, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 15, 2017 Dec 15, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 09, 2021 Jun 09, 2021

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines