• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Need ExtendScript works with URL (https:)

Enthusiast ,
Mar 02, 2020 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:

TOPICS
Scripting

Views

2.7K

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

correct answers 2 Correct answers

Community Expert , Mar 02, 2020 Mar 02, 2020

Have a look at the following

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

 

-Manan

Votes

Translate

Translate
Community Expert , Mar 02, 2020 Mar 02, 2020

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. 

Votes

Translate

Translate
Community Expert ,
Mar 02, 2020 Mar 02, 2020

Copy link to clipboard

Copied

Have a look at the following

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

 

-Manan

Votes

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
Enthusiast ,
Mar 02, 2020 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

Votes

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
Enthusiast ,
Mar 02, 2020 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

Votes

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 Expert ,
Mar 02, 2020 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. 

Votes

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
Enthusiast ,
Mar 04, 2020 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..

Votes

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
Contributor ,
Jun 02, 2020 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));


 

Votes

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 Expert ,
Jun 03, 2020 Jun 03, 2020

Copy link to clipboard

Copied

LATEST

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()

Votes

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