Curl image downloading issue

I am attempting to download an image file using curl. OS 10.5.2.

Here is the command I am using:

do shell script “curl -f ‘http://www.herpjournal.com/Headers/herpjournal.jpg’ -o ‘/Macintosh HD:Users:jims:Desktop:May_11_DollarDealer:jpg folder:testImage.jpg’”

The file downloads, but I cannot see it in the folder. If I search the the hard disk for the file name, it finds the file in the folder just like it is supposed to be. I searched the forum and couldn’t find anything. Anybody else run into this before?

Hi,

your destination path is wrong. A POSIX path contains only slashes, the first slash represents the startup volume

do shell script "curl -f 'http://www.herpjournal.com/Headers/herpjournal.jpg' -o '/Users/jims/Desktop/May_11_DollarDealer/jpg folder/testImage.jpg'"

or, with an AppleScript relative path


do shell script "curl -f 'http://www.herpjournal.com/Headers/herpjournal.jpg' -o " & quoted form of POSIX path of ((path to desktop as text) & "May_11_DollarDealer:jpg folder:testImage.jpg")

Okay, it’s not putting it in the folder, it is naming it “Macintosh HD/Users/jims/Desktop/May_11_DollarDealer/jpg folder/testImage.jpg” and saving it to the root of my hard disk with what I want as the path as the file name. What am I doing wrong with my command?

Oops, should have refreshed before I posted. Thanks StefanK!