Forums > MaxMSP

can we filter the files from the object [folder] by prefix of the file name?

October 30, 2009 | 4:50 pm

dear users,

we know that we can filter the types of files from the object [folder] by using messages: types TEXT etc.
I want to know if we filter the files of a folder by the prefix of the file name.
E.g. I want to collect only the files prefixed by fx. into a umenu.
Thus, only two files from the four files listed below should be added in the umenu:

main.maxpat
fx.delay.maxpat
fx.buffer.maxpat
dummy,maxpat

best,
prko


October 30, 2009 | 8:45 pm

You will want to use regexp for something like this. Here is a rough example:

– Pasted Max Patch, click to expand. –

October 30, 2009 | 8:45 pm

I have found a solution:

– Pasted Max Patch, click to expand. –

October 30, 2009 | 8:46 pm

Thanks for your solution!


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