Hello all,
I’m trying to use curl to download an image from the internet but its just seems to be returning the curl man page or something like that -_-
I successfully parsed the url, but I can’t get the curl command to download it. Any help would be appreciated!
set source to (do shell script "curl " & "http://weather.yahoo.com/forecast/CAXX0025.html")
set AppleScript's text item delimiters to {"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"}
set temp to text item 2 of source
set AppleScript's text item delimiters to {"', sizingMethod='crop');"}
set temp to text item 1 of temp
do shell script "curl -f" & quoted form of (temp) & "-o ~/Desktop/WeatherImage.jpg"
Model: MacBook Pro
AppleScript: 2.1
Browser: Safari 531.9
Operating System: Mac OS X (10.6)