On Feb 26, 2009, at 4:40 PM, Frank Bitterlich wrote:
Hi,
I'm experiencing stuff which made me rub my eyes in disbelief... A
file I created with FolderItem.SaveAsPicture() mysteriously
experienced a "cut" to the filename - the extension read ".pn"
instead of ".png". Further experimenting appears to show that the
filename is being cut off after the 32nd character every time. And
yes, this is on Mac OS X, not Mac OS 9 ;)
What's worse is that this filename cut is not reflected in the .Name
or .AbsolutePath properties of the FolderItem. As a side-effect, the
SaveFileAs() yields an errro code of 101 (="File not found").
I tried to "MoveFileTo" the file to another name, but this appears
not to work - it might be due to the fact that the folderItem
"disconnected" from the file - after all the Filename property does
not match the true file name.
Can anybody confirm this? Or should I hunt for some stupid/obscure
bug in my own code (might not be the first time)? If this is really
a RB bug, I might try to create a temporary file first, and later
move it into place. But I guess that GetTemporaryFolderItem might
return longer-than-32-characters filenames as well, right?
Hmmm....
What version of REALbasic? With Rb 2008r51 and Mac OS 10.5.6, this
operation does the right thing.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|