Skip to main content
Participant
November 8, 2016
Question

Download image from URL

  • November 8, 2016
  • 2 replies
  • 8995 views

Hi,

I need to download images from a webserver and have to display them on a catalog. This catalog should become a product catalog.

More info: The idea is that retailers can upload their product images on a webserver. An Indesign script should dynamically download these images and create a product catalog out of them. I'm currently stuck with coding the image download process. Is it possible in extendscript to download files given a URL?

Help is very appreciated.

This topic has been closed for replies.

2 replies

Participant
November 10, 2016

Aren't there any easier solutions?

For example, I've found this solution: javascript - How to download an image from url to use in Photoshop scripting (ExtendScript Toolkit) - Stack Overflow

However, it doesn't work for me since app.system() seems not to be valid. Why?

Community Expert
November 10, 2016

Thank you very much for your provided link!

In the meanwhile I tested Fabian's PhotoShop script snippet with several versions of PhotoShop.
As I can see app.system() is working with all my installed PhotoShop versions from CS4 to CC 2017 on OSX.

With PhotoShop CS3 app.system() seems to be not available.

Don't know how this will work on a Windows machine.
The command curl used by Fabian ( cURL, Client for URLs or Curl URL Request Library) should be also available on Windows.

See: https://curl.haxx.se

So downloading images from the web using ExtendScript with InDesign to the local file system should be doable by using BridgeTalk to access PhotoShop from InDesign.

Regards,
Uwe

Participant
November 14, 2016

I'm using InDesign and not Photoshop. I think this is the reason why app.system() is not available.

Jump_Over
Legend
November 8, 2016

@Hi,

Take a look here:

Re: HTTP Upload file with Socket

I mean post with link to getURL.jsx

Trevor:
Legend
November 9, 2016