libURLDownloadToFile tFileURL, tFileName, "downloadComplete"
where tFileURL is the 'http://' URL to the picture I want to save and tFileName is the name I want to save it under. I have not provided a path for tFileName so I expect the file to be saved in the same directory as my REV application which, in this case, is the desktop. My 'downloadComplete' routine looks like the following:
Code: Select all
on DownloadComplete pUrl pStatus
If pStatus = "Downloaded" then
answer information "Picture saved!"
else
answer warning "Picture failed to download."
end if
end DownloadComplete
Thanks,
Larry