Forums > MaxMSP

getting umenu to send just the filename without filetype

December 19, 2010 | 10:22 pm

hey folks. i am new into maxmsp and trying to build a umenu that just sends the filename without the filetype.
e.g. "test.txt" – i want just to recieve "test"
could anybody help me?
greets


December 19, 2010 | 11:28 pm

another solution would be to load just the filenames directly.
e.g. having a dropbox and the umenu is just created by the filenames without filetype.
would be great if anyone could help me.


December 20, 2010 | 12:28 am

a picture of what i did.
i want to drop a folder that creates a menu. i want to choose a file from the menu that is set to a message with a PREFIX and without the file ending ".rtf".
thanks :)

[attachment=149483,1570]

Attachments:
  1. foto.tiff

December 20, 2010 | 12:04 pm

A small regexp may help:

– Pasted Max Patch, click to expand. –

December 20, 2010 | 12:16 pm

thumbs up! thank u a lot. :)
just one little other problem:
if i drop a folder with .txt files inside the "folder" object works. but he doesnt recognize .jar files. why is that?


December 20, 2010 | 1:52 pm

You need to send folder the right types message.
I unfortunately don’t know the 4 letters code for .jar, it is not defined in the max-fileformats.txt file, so you may have to add one yourself…


Viewing 6 posts - 1 through 6 (of 6 total)