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

How to fetch from JSX

New Here ,
Jul 28, 2024 Jul 28, 2024

Copy link to clipboard

Copied

Hi All, 

 

I'm looking for a way to fetch image files using a JSX. The idea is that I parse through a CSV with a bunch of data fields, and then I want to download the images contained in a particular field. 

Thanks in advance for any and all help, 

 

K

TOPICS
Scripting , UXP Scripting

Views

114

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 ,
Jul 28, 2024 Jul 28, 2024

Copy link to clipboard

Copied

Just in case: do you intend to use the images in InDesign one way or another? Or are you simply looking for a way to download images from the Internet using links supplied in a CSV file?

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 ,
Jul 28, 2024 Jul 28, 2024

Copy link to clipboard

Copied

LATEST

JSX natievely just has a Socket object to make network connection. You could use that but it would be a lot of work I suppose. Other options that you could use are.

  • You could use an invisible CEP extension and use the JS part to download the image
  • You could explore using UXP. I have not looked into this much so can't guide too much on this.
  • If using JSX is the only option then you can look at https://coppieters.nz/?p=133 by @RorohikoKris 

-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