I have a text file with a list of URLs of images from a website. I would like to download them to a folder named Art on my computer.
I have tried Get Contents of TextEdit Document and then Extract URLs from Text, but then I don't understand how to parse each URL and save the image before moving to the next URL.
How can I batch download several images from their URLs?
Best Answer
Let's assume for a second that your image URL's are in a text file located on your desktop... "Image list.txt"
Let's assume each image URL in that file is on a separate line
Let's assume that the "Art" folder is located on your desktop (folder for the downloaded images)
This AppleScript code is all you need
Actually, here is an even better solution. Save this following AppleScript code in Script Editor.app as an application. Now you will have two options.
Double clicking on the app in Finder will open a dialog asking you to choose the text file containing the image URLs, then will proceed to download the images.
OR
You can drag the text file containing the image URLs directly onto the app’s icon, in Finder, which will then go ahead and process and download the images in that text file. (AKA Droplet)
Here is a visual of the droplet in action...