INTERACT FORUM

Please login or register.

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

Author Topic: Problem with expressions in Rename Files from Properties  (Read 1074 times)

Cmagic

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1196
  • Enjoying life with a little music....
Problem with expressions in Rename Files from Properties
« on: February 23, 2008, 07:41:52 am »

Hi,

I'm trying an expression for renaming files in Rename Files from Properties and I'm stuck with a problem.

When used in Rename Files from Properties, this simple expression: If(IsEmpty([Album Artist]), Empty, Full)
always return 'Full' regardless of the value of the field (Album Artist) !

When used in other locations (e.g. Current view) it works as it should returning Empty when the field is empty and full otherwise.

Are there any restrictions in expressions or Fields in Rename Files from Properties ?
Or is just me doing something wrong ?

Thanks for any clue on this,

Have a nice week-end,

Christian

PS: looks like this forum is very smart, automatically translating "R F F P" to "Rename Files from Properties" Ils sont trop forts !  ;)
Logged
Until the color of a man's skin is of no more significance
than the color of his eyes.
Bob Marley (War)

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9124
Re: Problem with expressions in Rename Files from Properties
« Reply #1 on: February 23, 2008, 09:50:26 am »

rename files from properties uses "unknown" for empty database values.
this is something it needs to do to prevent errors occurring by trying to create windows folders with no name.

To make it work for you, use:
if(isequal([album artist]),unknown,8),Empty,Full)

-marko.

Cmagic

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1196
  • Enjoying life with a little music....
Re: Problem with expressions in Rename Files from Properties
« Reply #2 on: February 23, 2008, 12:37:46 pm »


Thanks Marko,

It's working now...
Glad we have the interact ! I could have struggled with this one for a while as it is not very intuitive.

Again thanks and have a nice w.e.

Christian

Logged
Until the color of a man's skin is of no more significance
than the color of his eyes.
Bob Marley (War)
Pages: [1]   Go Up