nickorr/BaseElements-Plugin — Issue #9: BE_SaveURLToFile crash
Author: Kozue
Created: 2012-01-25 07:26:16+00:00
State: open

Hi

I tried BE_SaveURLToFile function , but it's crashed.

BE_SaveURLToFile (
// url
"http://www.goya.com.au/files/images/baseelements-productscreenshot.png" ;
// path
Get (desktoppath) & "sample.png"
)

on Mac
Get (desktoppath) & "sample.png" = /Macintosh_HD/Users/MyAccount/Desktop/sample.png

It works fine when I set path parameter as below
I removed "/Macintosh_HD/"

BE_SaveURLToFile (
"http://www.goya.com.au/files/images/baseelements-productscreenshot.png" ;
Users/MyAccount/Desktop/sample.png
)

on Windows
Get (desktoppath) & "sample.png" = /C:/Users/MyAccount/Desktop/sample.png
It works fine when I set path parameter as below
I removed "/" on top of the path.

BE_SaveURLToFile (
"http://www.goya.com.au/files/images/baseelements-productscreenshot.png" ;
C:/Users/MyAccount/Desktop/sample.png
)

Thank you ,

Kozue