INTERACT FORUM

Please login or register.

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

Author Topic: Expressions  (Read 1647 times)

cornishpirate

  • Recent member
  • *
  • Posts: 13
Expressions
« on: May 13, 2006, 04:42:50 am »

I would like to add a view with content limited to media contained in folders with the substring "- Dutch" in the outer folder name.

Is this possible?
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Expressions
« Reply #1 on: May 13, 2006, 04:48:09 am »

in step 4 of the add/edit view scheme dialogue, add the following:

[filename (path)]="- Dutch"

cornishpirate

  • Recent member
  • *
  • Posts: 13
Re: Expressions
« Reply #2 on: May 13, 2006, 05:47:07 am »

I have outer folders of the form F:\music\euro - Dutch

and 1 folder per album beneath that and those are the ones I need to select somehow.

So I need to find a string within the folder name and then take all the child folders beneath them.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Expressions
« Reply #3 on: May 13, 2006, 05:56:47 am »

[filename (path)]="- Dutch"

would list every file from every album folder beneath F:\music\euro - Dutch

Could you give a little more detail about what it is you are trying to achieve?

cornishpirate

  • Recent member
  • *
  • Posts: 13
Re: Expressions
« Reply #4 on: May 13, 2006, 06:06:09 am »

Marko, thanks for the help.

I'm trying to achieve what you said should happen with that expression, but it doesn't.

Surely there should be an operator meaning 'contains' rather than =
Logged

cornishpirate

  • Recent member
  • *
  • Posts: 13
Re: Expressions
« Reply #5 on: May 13, 2006, 06:41:39 am »

OK, sorted it.

Just removed the quotes and got the result I need.

Awesome product.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Expressions
« Reply #6 on: May 13, 2006, 07:01:30 am »

removing the quotes breaks the rule into two seperate parts.

without the quotes, you have:

[filename (path)]=- which returns all files with a hyphen in the folder path

followed by a search of every field that is searched by default for the term, Dutch.

have a look in the help file for search rules. it's all been taken care of. open help>expand 'smartlists'>Smartlist and Search - Rules and Modifiers

="-- --"   =contains
="-- --]   =ends with
=[-- --"   =begins with
=[-- --]   =exact match

It would help to understand what's happening if you paste the entire search string you are using here, as the order in which search rules are placed is more than a little bit important.

-marko.
Pages: [1]   Go Up