Page 1 of 1
mistake libUrlDownloadToFile on windows 7 and 8
Posted: Wed Feb 25, 2015 4:34 pm
by jmburnod
Hi All,
One tester says me libUrlDownloadToFile fails on windows 7 and 8.
Fortunately it works fine on OS X and IOS
Is there someone who met this problem ?
Thanks
Jean-Marc
Re: mistake libUrlDownloadToFile on windows 7 and 8
Posted: Wed Feb 25, 2015 10:32 pm
by Simon
This works on Win 7 for me
Code: Select all
on mouseUp
set the defaultFolder to specialFolderPath("desktop")
libURLDownloadToFile "http://www.example.com/index.html", "test.txt"
put the result
end mouseUp
or are you using ftp?
Simon
Re: mistake libUrlDownloadToFile on windows 7 and 8
Posted: Thu Feb 26, 2015 6:08 pm
by jmburnod
Hi Simon,
Thanks for test.
It seems the mistake is elsewhere in my scripts.
I dont understand why it works on OS X and IOS but not on windows
are you using ftp?
No
Best regards
Jean-Marc
Re: mistake libUrlDownloadToFile on windows 7 and 8
Posted: Fri Feb 27, 2015 5:45 pm
by jacque
It may be a permissions problem. Are you downloading the file to a writable location?
Also, you can check the libURLStatus to see if there's an error. LibURLErrorData may also work though the dictionary says it is for the load command.
Re: mistake libUrlDownloadToFile on windows 7 and 8
Posted: Fri Feb 27, 2015 6:45 pm
by jmburnod
Thanks Jaque,
That could explain why I was able to do this installation with a PC windows 7.
Sorry for my ignorance but is it possible that specialfolderpath("documents") is not writable on windows ?
Re: mistake libUrlDownloadToFile on windows 7 and 8
Posted: Fri Feb 27, 2015 7:20 pm
by jacque
Documents should always be writable.
Re: mistake libUrlDownloadToFile on windows 7 and 8
Posted: Sat Feb 28, 2015 11:42 am
by jmburnod
I haven't a PC, that is some feed-backs from users of EcrireEnPictos
I use libURLStatus to send a "listZipContents" and "extractArchive" messages
This installation copy a folder 322 Mo in "documents" folder
Re: mistake libUrlDownloadToFile on windows 7 and 8
Posted: Sat Feb 28, 2015 9:09 pm
by jacque