Highlighted

Need ExtendScript works with URL (https:)

Enthusiast ,
Mar 02, 2020

Copy link to clipboard

Copied

Dear All,

 

My request is fetch or alert data from URL using ExtendScript (InDesign).

 

Could any one please help for this.

 

Dig into google and find the below code, it looks good.

But my bad time, this one is not working for longer URL.

https://gist.github.com/daluu/2d9dec72d0863f9ff5a7

 

Not working for:

Adobe Community Professional
Correct answer by brianp311 | Adobe Community Professional

If you're missing the JSInterface plugin, did you install the plugin using a package installer? If using ID 2020, use this link instead: https://coppieters.nz/?p=310

 

Kris provides instructions on the older blog post about installing the plugin. 

TOPICS
Scripting

Views

527

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

Need ExtendScript works with URL (https:)

Enthusiast ,
Mar 02, 2020

Copy link to clipboard

Copied

Dear All,

 

My request is fetch or alert data from URL using ExtendScript (InDesign).

 

Could any one please help for this.

 

Dig into google and find the below code, it looks good.

But my bad time, this one is not working for longer URL.

https://gist.github.com/daluu/2d9dec72d0863f9ff5a7

 

Not working for:

Adobe Community Professional
Correct answer by brianp311 | Adobe Community Professional

If you're missing the JSInterface plugin, did you install the plugin using a package installer? If using ID 2020, use this link instead: https://coppieters.nz/?p=310

 

Kris provides instructions on the older blog post about installing the plugin. 

TOPICS
Scripting

Views

528

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
Mar 02, 2020 0
Adobe Community Professional ,
Mar 02, 2020

Copy link to clipboard

Copied

Have a look at the following

https://coppieters.nz/?p=133

 

-Manan

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
Reply
Loading...
Mar 02, 2020 0
Enthusiast ,
Mar 02, 2020

Copy link to clipboard

Copied

Hi Mannan,

 

Thank you for your swift reply...

I tried to run the script from the provided link, but I found the below error.

 

Error is JSinterface is undefined,

Hope "JSInterface.plugPlugLibraryPath"  is missing

 

Screenshot 2020-03-02 at 8.11.50 PM.png

 

JSInterface.plugPlugLibraryPath is missingJSInterface.plugPlugLibraryPath is missing

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
Reply
Loading...
Mar 02, 2020 0
Enthusiast ,
Mar 02, 2020

Copy link to clipboard

Copied

HI Manan,

 

I tried the GetURL.jsx, but it makes error. Please help on this!!

 

Screenshot 2020-03-02 at 8.50.48 PM.png

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
Reply
Loading...
Mar 02, 2020 0
Adobe Community Professional ,
Mar 02, 2020

Copy link to clipboard

Copied

If you're missing the JSInterface plugin, did you install the plugin using a package installer? If using ID 2020, use this link instead: https://coppieters.nz/?p=310

 

Kris provides instructions on the older blog post about installing the plugin. 

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
Reply
Loading...
Mar 02, 2020 0
Enthusiast ,
Mar 04, 2020

Copy link to clipboard

Copied

Thank you for your great support.. Manan and brian311.

Now this is working fine... 

Still need to test in various sitations and different conditions..

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
Reply
Loading...
Mar 04, 2020 0
Contributor ,
Jun 02, 2020

Copy link to clipboard

Copied

Hi all,

 

I now have a much better solution, which is an ExtendScript enhancement. Very easy to use (simply #include a jsx file which automatically selects and loads a binary DLL or dylib).

It works with all applications that have ExtendScript (so it also works with Illustrator, InDesign Server, ESTK, Bridge...).

It's based on libcurl. More info here:

https://coppieters.nz/?p=375

My previous 'GetURL' was using node.js/CEP which is not supported with InDesign Server. This new approach does not rely on CEP, so it works with InDesign Server.

Example:

#include "JSXGetURL/JSXGetURLLoader.jsx"

var getURL = JSXGetURL();

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

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


 

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
Reply
Loading...
Jun 02, 2020 4
grefel LATEST
Contributor ,
Jun 03, 2020

Copy link to clipboard

Copied

Another approach could be https://github.com/grefel/restix

 

  • HTTPS supported
  • Works form CS4 to CC 2018 (ExtendScript based library)
  • Based on VBScript/ServerXMLHTTP (Win) AppleScript/curl (Mac) relies on app.doScript()

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
Reply
Loading...
Jun 03, 2020 1