INTERACT FORUM

Please login or register.

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

Author Topic: Help adjusting Database Expression  (Read 1545 times)

JaredH

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 520
  • Superfluously Articulate
Help adjusting Database Expression
« on: February 22, 2006, 04:01:38 pm »

Ok, I'll try to ask this without being my usual wordy self.

I want to adjust the following DB Expression for Directory naming so that when I am renaming files whose [Type]=Singles, the directory naming structure ignores the [Album] tag and places the files in a simple [Artist] directory.

IF(IsEmpty([Disc #],1), [Audio Type]\[Type]\[Genre]\[Artist]\[Album],[Audio Type]\[Type]\[Genre]\[Artist]\[Album]\Disc [Disc #]


I also want to adjust the following DB Expression for File naming so that when renaming files whose [Type]=Singles, the file naming structure changes to [Artist] - [Name]

If(IsEmpty([track #], 1), [Artist] - [Name],[Artist] - [Track #] - [Name]


Help?

Logged
J. A. Hayslett

Blog & Gallery - http://www.bgracetfaith.net

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: Help adjusting Database Expression
« Reply #1 on: February 22, 2006, 04:41:52 pm »

Looks Complex

Make Sure you have the Latest Version Of MC11.1 I think they fixed a few things in the Expressions Area.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

JaredH

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 520
  • Superfluously Articulate
Re: Help adjusting Database Expression
« Reply #2 on: February 22, 2006, 05:31:31 pm »

Yeah, been running 11.1 since the early Alpha stage. I have no idea how to format those DB Expressions. There's a few people on the board who are well versed in the DB Expression language. I'm hoping they will chime in soon.
Logged
J. A. Hayslett

Blog & Gallery - http://www.bgracetfaith.net

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Help adjusting Database Expression
« Reply #3 on: February 23, 2006, 04:08:01 am »

Hi JaredH, thanks for the updated icons, btw :)

this should work for directories, assuming that no track of type 'singles' has a [disc #]...

if(isequal([type],singles,1),[Audio Type]\[Type]\[Genre]\[Artist]\,if(isempty([Disc #],1),[Audio Type]\[Type]\[Genre]\[Artist]\[Album],[Audio Type]\[Type]\[Genre]\[Artist]\[Album]\Disc [Disc #]))

.......

and this should do your filenames...

if(isequal([type],singles,1),[Artist] - [Name],if(isempty([track #],1),[Artist] - [Name],[Artist] - [Track #] - [Name]))

.......

I've not tested them, but they should, hopefully, work.
let me know if there's a problem :)

JaredH

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 520
  • Superfluously Articulate
Re: Help adjusting Database Expression
« Reply #4 on: February 23, 2006, 11:49:12 am »

Just the man I was hoping to hear from. You certainly work some magic with these DB Expressions.

A thousand thank yous go out to you marko.
Logged
J. A. Hayslett

Blog & Gallery - http://www.bgracetfaith.net

gk666999

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 68
Re: Help adjusting Database Expression
« Reply #5 on: February 23, 2006, 02:57:53 pm »

This is very useful. I tried to do this earlier, but "Rename Files from Properties" dialog did not support advanced DB expressions. now's the time I dig out my saved expressions and give it a shot once more. Though technically it isn't  smartlist, but I'd suggest to post it to "Share your favourite smartlist" thread.
Logged
Pages: [1]   Go Up