INTERACT FORUM

More => Old Versions => Media Center 12 (Development Ended) => Topic started by: lalittle on May 08, 2007, 05:48:34 pm

Title: Making a pane display/sort by last subfolder in path.
Post by: lalittle on May 08, 2007, 05:48:34 pm
There was some talk on this subject a while back, but I never heard of a solution.

Is there any way to make a pane that will display/sort by the name of the last subfolder in a path?  I tried to figure out a way to do this with an expression, but I'm not that familiar with editing expressions, so I could use some help on this.

Thanks,

Larry
Title: Re: Making a pane display/sort by last subfolder in path.
Post by: darichman on May 08, 2007, 11:51:45 pm
I have lots of situations where this would be useful to me!
Title: Re: Making a pane display/sort by last subfolder in path.
Post by: datdude on May 09, 2007, 12:12:47 am
Hmm, I did not know you could sort a pane other than in the options.  Can you sort by number of files?
Title: Re: Making a pane display/sort by last subfolder in path.
Post by: gummbah on May 09, 2007, 12:19:02 am
I would be very interested in this as well.
Probably it is doable if we know a way to find the number of letters the last directory name contains, because then we can use the 'RemoveLeft' or 'RemoveRight' expression.

Any help?
Cheers
Title: Re: Making a pane display/sort by last subfolder in path.
Post by: lalittle on May 09, 2007, 02:43:06 am
There was a suggestion before to get an expression to find the last folder by looking for the last backslashes in the path.  Unfortunately, I don't know enough about expressions to know whether or not this is possible.

Thanks for the feedback,

Larry
Title: Re: Making a pane display/sort by last subfolder in path.
Post by: hit_ny on May 14, 2007, 01:42:35 am
There is no *automated* way to do this atm, you can specifiy how many chars to look at , but this won't work for all cases.
Title: Re: Making a pane display/sort by last subfolder in path.
Post by: lalittle on May 14, 2007, 05:31:40 pm
There is no *automated* way to do this atm, you can specifiy how many chars to look at , but this won't work for all cases.

So there is no way to get it to search backwards from the end of the path for the second "\"?

Thanks again,

Larry
Title: Re: Making a pane display/sort by last subfolder in path.
Post by: hit_ny on May 15, 2007, 06:40:53 am
You can get it search backwards, but only by a certain number of chars...you can't say stop if it hits a "\"
Title: Re: Making a pane display/sort by last subfolder in path.
Post by: zirum on May 15, 2007, 11:16:02 pm
I hoped to get a way to solve this by this post:
http://yabb.jriver.com/interact/index.php?topic=40555.0

but not very much response there either...