Action to remove leading zero and total tracks

Has anyone created an action to remove leading zero and remove /total tracks on the track field?

I have been using the autonumber wizard to do this but it would be a lot quicker to just use an action. I have tried to create one but I am failing miserably.

Make a new action

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

Thanks for the quick reply, works perfectly :slight_smile: