download problem

Hi
The following code works fine for html files, but not for .plist files, even they are zipped. Anyone knows a workaround?


set sourcePath to "http://www.myAdress.com/Test.plist"
--set sourcePath to "http://www.myAdress.com/Test.plist.zip"
set destinationPath to "Macintosht HD:Users:userName:Desktop:Test.plist"
tell application "URL Access Scripting"
	activate
	download sourcePath to destinationPath replacing yes 
end tell

If I drag and drop the .plist files by hand from my ftp server, it works fine, are the settings for my server wrong?

Does this work?

do shell script "cd ~/Desktop; curl -O [url=http://www.myAdress.com/Test.plist]http://www.myAdress.com/Test.plist"[/url]

This is great advice. When all else fails with browsers, Curl seems to manage every time. Very powerful way to get html if you want to parse the source for data too.

Yes, this works fine. Thanks!!!
But not for my .plist files, I have to make .zip to download them…:lol: