Getting path of a file (Not Dropfile)


    Jun 24 2009 | 3:49 pm
    In a umenu I have a bunch of mp3's listed (along with their file path) so that when I select them they play. For every mp3 selected/played I want the filepath of that .mp3. The only maxobject I have seen that can determine the filepath of a file is dropfile, but I am not dropping files, and dropfile does not accept any input. Any ideas?

    • Jun 24 2009 | 4:13 pm
      I think a simple example of what you are doing would help, as there's a million ways of doing this.
      However, off the top of my head, you may want to look at "regexp"
    • Jun 24 2009 | 4:17 pm
      That works nicely, thanks! I have never understood regexp and I hate it with a passion
    • Jun 24 2009 | 4:27 pm
      There's a running regexp tutorial on this list. Also, the MMJ depot at cnmat has a regexp tutorial/example patch.
      Download:
      unzip and go to:
      /CNMAT-Everything-OSX-MachO/CNMAT_MMJ-Depot/tutors/object-tutors/about_regexp.maxpat
      Regexp may be confusing, but it is your friend.