INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: expressions in the base path field a possibility?  (Read 3475 times)

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
expressions in the base path field a possibility?
« 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?

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: expressions in the base path field a possibility?
« Reply #1 on: March 31, 2006, 12:54:08 am »

*cough*

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: expressions in the base path field a possibility?
« Reply #2 on: April 03, 2006, 01:42:59 pm »

please? :)

Jaguu

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1336
Re: expressions in the base path field a possibility?
« Reply #3 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.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: expressions in the base path field a possibility?
« Reply #4 on: April 08, 2006, 09:15:51 am »

*gentle bump*

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: expressions in the base path field a possibility?
« Reply #5 on: April 17, 2006, 06:32:16 am »

and again....

:)

@l@n

  • Regular Member
  • World Citizen
  • ***
  • Posts: 146
  • bla bla bla, bla bla bla bla
Re: expressions in the base path field a possibility?
« Reply #6 on: April 17, 2006, 02:51:56 pm »

Pretty Please with Sugar on Top!!!
Logged
Download the aLyrics plug-in at http://aLyrics.auldridge.biz

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: expressions in the base path field a possibility?
« Reply #7 on: May 17, 2006, 01:50:55 am »

todo....

:)

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: expressions in the base path field a possibility?
« Reply #8 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?
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: expressions in the base path field a possibility?
« Reply #9 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.
Pages: [1]   Go Up