Filename > Tag: Drop leading zero on tracknumber

I have filenames in the format: 01 - Title - Artist - Album
When I import the tags from the filename, is there a way to drop the leading zero?

In Tag to Tag we can use functions to do this, but in Filename to Tag functions aren't supported. And I hate having to do two actions for one thing.

You could use an action of the type "Guess value" instead - that allows scripting functions.

I know, but that still requires an extra step in the process

If you use "Guess value" instead of the Converter then it stays 1 step.

Ok, you've lost me, Convert menu is just the same options as on the toolbar.
And in the Action list there's no Convert other than for codepage.

Did you have a look at the linked documentation?

The action "Guess value" allows as source string a format string which means that you could structure the data from _FILENAME in such a way that you do not get a leading zero and then assign that structured string to a pattern of fields.
The disadvantage is that there is no preveiw but it is more flexible as it is not limited to the filename as source.

Yes I did, and I don't see any way to use Guess Values where the source of the data is the filename itself.

You could try "Guess value" with
Source: $num(%_FILENAME%,1)==$regexp(%_FILENAME%,(\d+) - (.*),$2)
Target pattern: %track%==%title% - %artist% - %album%

Sheesh, talk about a convoluted way to get around Filename > Tag not supporting functions...

But anyways, much obliged, would never have figured this myself...

Indeed. 2 Steps would be much easier and more straightforward. But you