Action- Filename - Lower case except very first letter


#1

Hello all

Can someone help me out please with an action to apply to the FILENAME only ?

My directory tree is
E: \ Music \ Genre \ Artist \ Year Album \

and then comes the filename comprising :

Tracknumber (2 or 3 digits) SPACE Trackname.

Many tracknames are mixed case, i.e. each word starting in uppercase.
Example
01 Smoke On The Water

I want to change this to :
01 Smoke on the water

If I create an action FILENAME Sentence case, all letters including the very first go lowercase.
01 smoke on the water

I have entered 0123456789 and a space in the AFTER box
but this makes no difference.

What am I doing wrong ?

Best regards and thanks in advance
Ray


#2

The action module works correct.
But it cannot help to solve the task, I think so.

There are other ways to go in Mp3tag, here is one proposal ...
(... for two digit leading track number)
Action: Format value
Field: _FILENAME
Formatstring: $left(%_filename%,3)$caps3($cutLeft(%_filename%,3))

Here is another proposal, which handles a various number of leading digits ...
Action: Format value
Field: _FILENAME
Formatstring: $regexp(%_filename%,'^(\d+\s+)(.)(.+)$','$1\u$2\L$3')

From:
01 Smoke On The Water
To:
01 Smoke on the water

DD.20110706.1222.CEST


#3

From:
01 Smoke On The Water
To:
01 Smoke on the water

vielen Dank - ich habe die zweite Variante verwendet - funktioniert perfekt !

Ray