INTERACT FORUM

Please login or register.

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

Author Topic: ViewScheme - filter by filename(path)  (Read 1325 times)

slipknot

  • Galactic Citizen
  • ****
  • Posts: 255
ViewScheme - filter by filename(path)
« on: July 29, 2006, 09:12:23 pm »

Due to problems I'm having with keeping a separate library of tracks for my ipod I'm trying another approach.

I want to import the mp3 tracks for my ipod into may main library, but exclude them from most of my view schemes.

But when setting up the view scheme, I can't see to do a mid() (ie: substring) on the filename (path) since that field is not in the list of available fields to filter on.  I had wanted to filter on "J:\ipod" as the first chars of the full pathname.

I suppose I could put the ipod mp3 files on another drive and filter on the volume name,

Foiled again.

Does anyone have any ideas on how to create view schemes to filter on the path of the tracks?
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8941
Re: ViewScheme - filter by filename(path)
« Reply #1 on: July 30, 2006, 03:28:06 am »

:)

No need for expressions this time...

-[filename]=J:\ipod



slipknot

  • Galactic Citizen
  • ****
  • Posts: 255
Re: ViewScheme - filter by filename(path)
« Reply #2 on: July 30, 2006, 04:40:06 am »

:)

No need for expressions this time...
-[filename]=J:\ipod

Wow thanks again, works perfectly.  The leading "-" seems to mean "not".

Does  the = mean "starts with" or "contains".

And since the = does not seem to require a complete match, what if I wanted a complete match, how would that be done?

Thanks again.  I appreciate the help.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8941
Re: ViewScheme - filter by filename(path)
« Reply #3 on: July 30, 2006, 06:15:46 am »

Wow thanks again, works perfectly.  The leading "-" seems to mean "not".

Does  the = mean "starts with" or "contains".

And since the = does not seem to require a complete match, what if I wanted a complete match, how would that be done?

Thanks again.  I appreciate the help.
= means matches
- means not
"contains" is implied by the fact that there is no formatting at all around the search term, j:\ipod
if you had wanted to imply "starts with", which in this case would return the same results, you would have wrapped the search term like so:
[j:\ipod"
if you want "precisely equal to" wrap the search in square brackets.... [field name]=[j:\ipod] would exclude j:\ipod\subfolder

look in the help file under:
smartlists > Smartlist and Search - Rules and Modifiers
for more detailed info
Pages: [1]   Go Up