Forums > MaxMSP

Dropfile: Cannot drop folder, output paths of individual files.

Jul 08 2010 | 7:14 am

Im trying to have [dropfile] receive a folder and send out the exact filepaths of the files inside, one after another. I don’t want to populate a [umenu] I just want to send the filepaths of the files out so I can store it (like in a coll). It would be nice if I could as well specify the file types but that is not all that important. If I specify the types I cannot drop a folder (the little "plus" icon doesn’t show) just the files specified.

It seems possible to do this but no where on the forum is it explained and the help file does not explain this.

Any help would be much appreciated,

— Jon Van Hoff

Jul 08 2010 | 7:30 am

It works for me. the type of folder is "fold". Could you post an example?

Jul 08 2010 | 7:49 am

Hello Emmanuel,

I know from the help patch for [umenu] that one can populate a [umenu] using [dropfile] but I wish output only the filepaths for the individual files contained in the dragged and dropped folder.

This patch is stupid simple and I posted it per request, though I do feel silly posting something so simple. I think this question might be deceptively simple and I am making it over-complicated.

Best regards,

Jon Van Hoff

-- Pasted Max Patch, click to expand. --

Jul 08 2010 | 9:26 am

Hi Jon,

just put a [folder] object after your dropfile.

-- Pasted Max Patch, click to expand. --


Jul 08 2010 | 4:38 pm

Thanks for the reply Léo.

Your example did not work for me but I figured out why. In your patch: [loadbang]–>[msg types fold]–>[dropfile]–>[folder]. This printed: COUNT 0 and nothing else. After checking out the [folder] help patch I found that I could attach the [msg types "whatever I’m using"] and the [dropfile] (with no [msg types…])to the [folder] and get the names of the files to be printed. Note that this is not the desired result, I wanted full path names for each file in the folder.

But now I can concatenate the folder path from [dropfile] and the out put from [folder] to get what I want.

-- Pasted Max Patch, click to expand. --

Thanks for your help.

— Jon

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

Forums > MaxMSP