I am trying to download a series of images from a list. The following is an example:
set testing to "http://photocache.petfinder.com/fotos/WA53/WA53.20914066-1-t.jpg"
set AppleScript's text item delimiters to {"-"}
repeat with g from 1 to 3
set theImage to text item 1 of testing & "-" & g & "-x.jpg"
---------------------------
--Just to prove the var theImage is valid
tell application "Safari"
open
activate
set the URL of tab 1 of window 1 to theImage
end tell
---------------------------
-====================-
--This part doesn't work
do shell script "curl -f '" & text item 1 of testing & "-" & g & "-x.jpg' -o '/Volumes/SpecialSections/Special Pages O-R/Pet Pages/Process Pics/" & g & ".jpg'"
--This also doesn't work
do shell script "curl -f '" & theImage & "' -o '/Volumes/SpecialSections/Special Pages O-R/Pet Pages/Process Pics/" & g & ".jpg'"
----------------------
--- I am using the single quotes and then double quotes properly in the script command...
--This part is an example and it DOES work using the file path of the save to.....
do shell script "curl -f 'http://www.herpjournal.com/Headers/herpjournal.jpg' -o '/Volumes/SpecialSections/Special Pages O-R/Pet Pages/Process Pics/" & g & ".jpg'"
end repeat
Any help sorting this out would be great. I have the save location down, so you can change that.