Greetings!

This problem is making me crazy! I'm using the AuthorizationMBS class to do 
various things (for a kind of installer). I try to copy one file located in the 
bundle of my app to /Library/Temp1 (a folder I made and is readable and 
writeable by everyone).

So, the authentication object (Auth as AuthorizationMBS) is authenticated (the 
"authorized" property is true) and these are the relevant statements being 
executed:
Auth.Execute(t,s)
j=Auth.LastError

where t="/bin/cp" and s is this array:
0: "/Volumes/Macintosh HD/Users/<username>/Documents/RB/Installeur/My 
Application.debug.app/Contents/Resources/Installation.bundle/LSDEB1.7.m4a"
1: "/Library/Temp1"
(yes, both are of course valid paths, I've checked over and over)

When the Auth.Execute is executed, Auth.LastError equals 0. However, the file 
isn't actually copied and I get this in the Console:
18.12.11 20:21:37.498 [0x0-0x1bf1bf].My Application.debug: cp: 
"/Volumes/Macintosh HD/Users/<username>/Documents/RB/Installeur/My 
Application.debug.app/Contents/Resources/Installation.bundle/LSDEB1.7.m4a": No 
such file or directory

I could simply think the path is incorrectly written in code, but it's not 
(it's what makes me crazy): if I copy&paste the path from the Console (e.g. the 
extract above) in a terminal window (writing: cp <paste> "/Library/Temp1") the 
copy works fine! So the path is valid but the Auth.Execute doesn't think the 
same.

So, two problems I don't understand:
1: why is the path invalid in RB, but becomes valid once copied/pasted to a 
terminal window?
2: the copy fails and the Console shows me an error, but LastError is 0. Which 
is right?

Could this be an encoding problem? (so the path would be invalid in RB but not 
when pasted?). My path doesn't contain characters out of the 0-127 range, 
however, and I don't know what encoding I should try if this is the problem.

What else can I try?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to