file names truncated

Sep 6, 2006 at 1:24am

file names truncated

hello.
i have attempted a few ways to try and find a solution to this problem. many apologies if this has been covered, i was unable to find a solution in the archives.

basically, if i want to populate an umenu or coll with the contents of a folder, and a file name in that folder is longer than, oh let’s say 40 chars, the filename gets truncated and appended with a # and some random letters and numbers, followed by the file extension.

this happens with both the folder object and the javascript folder.filename property.

also this only happens on the mac, it doesn’t occur on windows.

if someone can tell me a way around this i would be most grateful because the truncated filenames are useless to me.

many thanks.
-rob

#27498
Sep 6, 2006 at 2:09am

31 char limit has come up a few times in the past, don’t know if
there is any move to lift the limit (legacy code and all that) –
sorry this isn’t any help.

Mike

On Sep 5, 2006, at 8:24 PM, Robert Ramirez wrote:

>
> hello.
> i have attempted a few ways to try and find a solution to this
> problem. many apologies if this has been covered, i was unable to
> find a solution in the archives.
>
> basically, if i want to populate an umenu or coll with the contents
> of a folder, and a file name in that folder is longer than, oh
> let’s say 40 chars, the filename gets truncated and appended with a
> # and some random letters and numbers, followed by the file extension.
>
> this happens with both the folder object and the javascript
> folder.filename property.
>
> also this only happens on the mac, it doesn’t occur on windows.
>
> if someone can tell me a way around this i would be most grateful
> because the truncated filenames are useless to me.
>
> many thanks.
> -rob

#83261
Sep 6, 2006 at 2:48am

#83262
Sep 6, 2006 at 3:01am

ahh yes, i knew i saw that post at some point.
i suppose i couldn’t find it interleaved with the other post.

for my dj patch, it’s important to see the whole name. otherwise it’s really not a problem. (the patch functions fine)

does anyone know if this plagues intel macs as well?

has anyone had success overcoming this with shell?

i may give that a shot…

thanks.

#83263
Sep 6, 2006 at 4:01am

here is my solution.
thanks to the forum.

#P button 136 47 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 155 248 56 196617 prepend ls;
#P newex 156 270 31 196617 shell;
#P newex 136 69 74 196617 opendialog fold;
#B color 5;
#P newex 155 299 75 196617 prepend append;
#P window setfont “Sans Serif” 14.;
#P user ubumenu 85 353 496 196622 0 1 1 0;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P window setfont “Sans Serif” 9.;
#P newex 155 223 51 196617 tosymbol;
#P newex 155 198 215 196617 regexp @re (\\S)\\s @substitute “%1\\ “;
#P newex 214 224 67 196617 prepend set;
#P message 165 129 143 196617 substitute /Volumes/%1/%2;
#P newex 155 174 51 196617 tosymbol;
#P newex 155 149 90 196617 regexp (.*):/(.*);
#P window linecount 0;
#P message 214 249 395 196617;
#P window linecount 1;
#P newex 214 45 50 196617 loadbang;
#P message 290 69 79 196617 pathstyle slash;
#P message 214 69 73 196617 pathtype boot;
#P newex 155 98 98 196617 conformpath;
#P connect 10 0 15 0;
#P connect 10 0 8 0;
#P fasten 3 0 7 0 219 65 379 65 379 145;
#P connect 3 0 1 0;
#P fasten 3 0 2 0 219 65 295 65;
#P connect 6 0 9 0;
#P connect 9 0 10 0;
#P connect 15 0 14 0;
#P connect 14 0 12 0;
#P connect 12 0 11 0;
#P connect 16 0 13 0;
#P connect 13 0 0 0;
#P connect 8 0 4 0;
#P connect 5 3 6 0;
#P connect 5 0 6 0;
#P connect 7 0 5 0;
#P connect 0 0 5 0;
#P fasten 1 0 0 0 219 92 160 92;
#P fasten 2 0 0 0 295 92 160 92;
#P window clipboard copycount 17;

#83264

You must be logged in to reply to this topic.