XML Feeds

.

[java-dev] Re: Re: SOLUTION! Long Filename Support in Max with Java

Rick Burnett grimepoch at mac.com
Mon Sep 10 14:53:17 MDT 2007


Just to be safe, I re-uploaded the library so try re-downloading it.  The file sizes were identical, so I am not sure what is going on.

1)  The file has to exist.  I created a file in a test directory with the same name you used.  If the file does not exist, it will return garbage.  I need to add a check and return -1 or something if the file does not exist.  That will have to be a future update.

Also, feeding the name back in also mangles it (meaning you cannot feed the max name through it.  In the javascript it should be easy to check for the # character and surpass the check code.

Here is the code I used (you'll have to touch the file in /Test/Charlotte/_perso/_samples/bush/.....)



#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 112 143 62 196617 prepend set;
#P window linecount 2;
#P message 112 176 415 196617 "Macintosh HD:Test/Charlotte/_perso/_samples/bush/faut-il sauver le so#100709.wav";
#P window linecount 1;
#P message 112 62 398 196617 convert "/Test/Charlotte/_perso/_samples/bush/faut-il sauver le soldat bush.wav";
#P newex 112 108 105 196617 mxj convertFilename;
#P connect 3 0 2 0;
#P connect 0 0 3 0;
#P connect 1 0 0 0;
#P window clipboard copycount 4;



More information about the java-dev mailing list