put url works on Mac but NOT on Windows 10 (for me!)
Posted: Sat Apr 29, 2017 2:53 pm
Hi,
I'm sure this must have been covered somewhere before but i seem unable to locate it...
I have the following line of code :
put url sURL into url ("binfile:" & gsAppDataPath & "/" & gsTempFilesFolder & "/" & sFileName)
Assuming all variables are declared, populated and contain no obvious errors, the line works as expected on my Mac : the file referred to by "sURL" is copied to a 'Temp Files' folder within an app-specific folder and with a new name ON MY MAC. When I look at the 'the result' (answer the result), immediately after the above line, I get a null field (all great here ! ) .
However, when I execute the exact same line of code on my Win 10 laptop I get a 'can't open file' error reported by 'the result'...
Anyone able to tell me why please ?
For clarity, this line is in an app I'm writing that operates perfectly on my Mac but when I run the exact same 'app' on my Win 10 PC I get the error (on the exact same file) and no file ends up in my 'Temp Files' folder...
Is this maybe a permissions thing ? Any and all help, as always, is much appreciated.
Thanks a mil. Have a great weekend.
Best
Trax
I'm sure this must have been covered somewhere before but i seem unable to locate it...
I have the following line of code :
put url sURL into url ("binfile:" & gsAppDataPath & "/" & gsTempFilesFolder & "/" & sFileName)
Assuming all variables are declared, populated and contain no obvious errors, the line works as expected on my Mac : the file referred to by "sURL" is copied to a 'Temp Files' folder within an app-specific folder and with a new name ON MY MAC. When I look at the 'the result' (answer the result), immediately after the above line, I get a null field (all great here ! ) .
However, when I execute the exact same line of code on my Win 10 laptop I get a 'can't open file' error reported by 'the result'...
Anyone able to tell me why please ?
For clarity, this line is in an app I'm writing that operates perfectly on my Mac but when I run the exact same 'app' on my Win 10 PC I get the error (on the exact same file) and no file ends up in my 'Temp Files' folder...
Is this maybe a permissions thing ? Any and all help, as always, is much appreciated.
Thanks a mil. Have a great weekend.
Best
Trax