getting umenu to send just the filename without filetype

maerzhase's icon

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

maerzhase's icon

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.

maerzhase's icon

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 :)

1570.foto.tiff
tiff
pdelges's icon
Max Patch
Copy patch and select New From Clipboard in Max.

A small regexp may help:

maerzhase's icon

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?

pdelges's icon

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...