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

Jul 8, 2010 at 7:14am

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

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

#51270
Jul 8, 2010 at 7:30am

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

#183850
Jul 8, 2010 at 7:49am

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. –
#183851
Jul 8, 2010 at 9:26am

Hi Jon,

just put a [folder] object after your dropfile.

– Pasted Max Patch, click to expand. –

Léo

#183852
Jul 8, 2010 at 4:38pm

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

#183853

You must be logged in to reply to this topic.