help w/ discnumber to filename


#1

ok im not so good with scripting, so be easy on me..

i want to rename tracks in multi-disc sets so that the filenames begin with the disc number. but i also want to trim the leading zero as well as the trailing total number of discs in the set (i have the discnumber field in the format 0n/0x).
also, how would i implement this into my regular file renaming action so that IF there is a discnumber field, it will perform the above, and IF NOT then it will ignore the command?
thanks!


#2

That should it be:
[$num(%discnumber%,1)]


#3

hmmm... actually- now i am wondering if people normally store the disc total in the same field as the discnumber.. or do they use two fields for each? is there any sort of standard on this?

[edit: oh wow fast reply! that worked great, even though i dunno how it knew to remove the total discs (??) but yay! thanks!!]


#4

this only works when the discnumber is present. otherwise it pads the track with a zero. is there a way to only add the discnumber when the field is present?


#5

That's what it does!
The brackets are part of the expression, don't drop them.


#6

ohhhh cool. thanks.