Folder/ file path stuff
Hi all,
I'm currently using [opendialog fold] to load some umenus with file names. What I'd like to do is split the folder into a list of all the individual file names before going to the umenus. How do I got about doing this?
Thanks!
Anyone?
Have a look at [folder].
That doesn't seem to be doing the trick. It works fine with the [folder] going into an umenu, but with a set up like this
It just seems to be outputting one element of the list of files and how many files are in the folder. What I want is the whole list of files so I can split them up individually.
yes, because it outputs all the elements sequentially, not at once. you should rahter plug a [print] at the outlet of an object you don't know that you want to test, not a message box, a message box will only display the last element that it has received.
That said, it's slightly a bit tricky to use [folder] in the above patch, because unlike most of the max objects, the leftmost outlet - which is all the elements in requested folder output sequentially - comes out first, and the rightmost outlet - which is the actual size of the list - comes out last. In this patch you can't set the size of [zl group] by the size of the list, because it so happens that if you change the size of the [zl group] it empties its content, and as the size information would come to him after the elements od the list (leftmost outlet), it would be emptied of its content.
Yeah using message boxes is a habit I've formed which I should get out of.
Thanks though that actually work exactly how I want.
glad to help :)