strip part of track info


I want to create an action to remove total track from track fields, ie, when the track field contains 5/20 I want it to be only 5. What would I use for the script?

Mind you I want it to be smart enough to realise there might only be a 5 to begin with, so then skip that file (I want to do it in a big batch)



Action type: Format value
Field: TRACK
Formatstring: [$num(%track%,1)]