Forums > MaxMSP

Go "Up" a folder level?

Jun 22 2009 | 12:16 am

Interested in a way to go up a folder level…For example if I provide: "MacBook HD:/Users/Marcos/Music/Portishead/Dummy/" without quotes, I get "MacBook HD:/Users/Marcos/Music/Portishead/"
in return. I’m sure some C or javascript would be the best way to do this, but I’m not that proficient in either of these. Anyone care to try?


Jun 22 2009 | 5:53 am

I’m a little unclear by what you mean. What are you feeding the path into that’s giving you back a shorter path? Or maybe, what are you trying to get to move up a folder level?

Jun 22 2009 | 6:03 am

I WANT to get back a shorter path…I am finishing my playlist touchscreen interface, and I want a "Back" button to go "Up" a folder…just how you would hit back in Finder or in Explorer…I am looking for a way to do this

Jun 22 2009 | 6:15 am

Ah, I see. You could feed the path into [regexp (.+)/.+] to lop off the last folder in the path.

edit: comes out the second outlet.

Jun 22 2009 | 6:47 am

Thank you sir, works nicely. Mind checking my other regexp thread haha Very Happy

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

Forums > MaxMSP