OK, this any idea why this doesn't work?
I've tried it with and without making a file before trying to download.
Not sure about the –o and –O options.
______
set
fileToDownload to quoted form
of ("http://support.apple.com/kb/HT1582?viewlocale=fr_FR")
set filePath
to (choose file name)
set openFile
to open for access filePath
with write permission
close access openFile
set filePath
to POSIX path
of filePath
set
myFile to quoted form of
(filePath
as text)
set
XMLbrut to do shell script
"curl -o " &
filePath & " " &
fileToDownload
set
myFile to quoted form of
((filePath
as text) & -1)
set
XMLbrut to do shell script
"curl -O " &
filePath & " " &
fileToDownload