Download bulk pictures from a list of urls in excel file and then rename the pictures
Hi Everyone,
I really hope someone can help me. I am very new to this Apple and its scripting. What I need to do is very close to this thread but I can not understand how to change.
https://discussions.apple.com/thread/7603407?answerId=30384806022#30384806022
The below script from Camelot is exactly what I need however I need to make a few changes
- my rows are "A1:A29404" for image new / code name
- my rows are "B1:B29404" for URLs
- I don't use Yosemite, I use Latest Catalina, I don't know which version AppleScript I have
- My folder path would be "desktop/ImagesDownload"
- And I do not use Numbers, I use Excel
- where do I put my file name, or how does this work? will this script ask me to open the file and then run the script? How do I save this script as an app?
Script from Camelot
---------------------
use AppleScriptversion "2.4" -- Yosemite (10.10) or later
use scripting additions
tell application "Numbers"
set filenames to value of every cell of range "A1:A8" of table 1 of sheet 1 of document 1
set URLs to value of every cell of range "B1:B8" of table 1 of sheet 1 of document 1
end tell
repeat with i from 1 to count URLs
if (item i of filenames is not missing value) and (item i of URLs is not missing value) then
set thisFname to quoted form of (POSIX path of ((path to desktop) as text) & item i of filenames)
set thisUrl to quoted form of item i of URLs
set status to (do shell script "echo curl -s -o " & thisFname & space & thisUrl)
end if
end repeat
---------------------
Many thanks in advance.