need help, please

I’m very new to Applescript and have a project that requires the saving (downloading?) of jpeg images that appear on a certain web page. These images do not have an absolute address such as “http://www.abc.com/image1.jpg” Rather, the images are generated by the server as a result of a cgi-bin request. The server returns the image on a web page that has a URL address such as http://www.abc.com/cgi-bin/image?h=400&v=300&m=6&c=30 (not a real address). I think I can write a script that would construct the URL with its appropriate cgi parameters, but I don’t know how to use it such that the image is generated and downloaded to my local disk. Can someone please help? I would be forever in your debt. Thanks in advance. -Ted Froberg

URL Access Scripting is your friend.

Try something like this:

 set theURL to blahblahblah -- your code goes here to construct the URL
tell application "URL Access Scripting"
   download theURL to file "Path:to:saved:image.jpeg"
end tell

Thank you. I will give that a try…

set theURL to blahblahblah -- your code goes here to construct the URL 
 tell application "URL Access Scripting" 
    download theURL to file "Path:to:saved:image.jpeg" 
 end tell

It works beautifully. Thanks so much for your help!