As far as I know it is not possible in action directly, because there is no counter function in there.
But you can do it in a roundabout way in my opinion.
You can use a special placeholder %_counter% in export scripts. You can create a text file with the required new titles, then you can use that file to change the %title% fields (Textfile - Tag button).
There is a little code for an export script, but I think it is not very good:
$loop($left(%title%,$sub($strstr(%title%,' '),1)),1)$loop($left(%title%,$sub($strstr(%title%,' '),1)))$regexp(%title%,^(.+?)\s(.+?),$1 %_counter%. $2)
Must be a much better solution. I think the $left part can be replaced with $regexp in some way. But it works if the first part of your title (called StringX) doesn't contain any spaces, and the separator between StringX and SubstrX IS a space.
In the two loop part I used the $strstr function, so if the separator is not a space, you can change the parameter ' ' to the desired separator string. (In that case you have to change the $regexp parameter, too).
It works in these examples:
Titles in files:
ABBA Cats and Mice
Beatles Sharks and Whales
ABBA 1. Dog
ABBA 2. Cats and Mice
Beatles 1. Elephant
Beatles 2. Sharks and Whales
Anyway, I wonder the regexp version of this script.
Help.mte (172 Bytes)