INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: marko on March 23, 2006, 05:19:00 am

Title: expressions in the base path field a possibility?
Post by: marko on March 23, 2006, 05:19:00 am
Is this something that can be used to mandate saving certain parts of the alphabet to a particular hard drive or folder?
Such as: 
IF ([Artist], 1, 1)=a-j THEN Path=E:\Music1, IF ([Artist], 1, 1)=k-z, THEN Path=F:\Music2


---------->

Yes.

There's more info on if statments here:
http://www.jrmediacenter.com/DevZone/DBExpressions.htm

Take note of the IsRange(...) function.

Here's a simple sample:
Path: If(IsRange([Artist], a-m), D:, E:)\Music

This would use D:\Music for a-m artists and E:\Music for other artists.

If we could be allowed to use expressions in the 'base path' field it really would make the rename from props tool a 'one-stop shop'

Any chance of sneaking it in?
Title: Re: expressions in the base path field a possibility?
Post by: marko on March 31, 2006, 12:54:08 am
*cough*
Title: Re: expressions in the base path field a possibility?
Post by: marko on April 03, 2006, 01:42:59 pm
please? :)
Title: Re: expressions in the base path field a possibility?
Post by: Jaguu on April 03, 2006, 03:09:38 pm
Yes, this would allow to define more comprehensive rules for all the different media types.

By the way: One can easily loose track of all the expressions used and spilled all over MC11.1.

A suggestion would be to use named expressions and have a place such as an "expression editor" in  a central place, very similar to the name function in Excel. You could give a short name to a very complex expression such as caption_rule="very long and complex expression..." and used that name instead of the expression.

Also, expression are store in the registry, not a very portable way from one system to the other, better would be to store them in the library.
Title: Re: expressions in the base path field a possibility?
Post by: marko on April 08, 2006, 09:15:51 am
*gentle bump*
Title: Re: expressions in the base path field a possibility?
Post by: marko on April 17, 2006, 06:32:16 am
and again....

:)
Title: Re: expressions in the base path field a possibility?
Post by: @l@n on April 17, 2006, 02:51:56 pm
Pretty Please with Sugar on Top!!!
Title: Re: expressions in the base path field a possibility?
Post by: marko on May 17, 2006, 01:50:55 am
todo....

:)
Title: Re: expressions in the base path field a possibility?
Post by: Doof on May 17, 2006, 12:28:49 pm
Just out of curiosity... I haven't tried this, but can you bypass the base path field altogether, just leave it blank, and then put one expression in the folder field that figured out the drive letter and everything?
Title: Re: expressions in the base path field a possibility?
Post by: marko on May 18, 2006, 05:18:47 am
Nah, that won't work.
If you don't specify a base path, MC assumes the files' current directory to be the base path.

Matt says this is possible, but I cannot fathom it out all. Has anyone out there managed to get this renaming rule to work, in any way, shape, or form? if so, please share the solution with the rest of us :)

-marko.