Go "Up" a folder level?

Jun 22, 2009 at 12:16am

Go "Up" a folder level?

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 at 5:53am

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 at 6:03am

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 at 6:15am

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 at 6:47am

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


You must be logged in to reply to this topic.