What I meant was the following:
Lets say I have 5 tracks from the Suite No. 1 in D minor, BWV 812 with titles as follows:
Allemande
Courante
Sarabande
Menuet I/II
Gigue
I like them to have the following form instead:
Suite No. 1 in D minor, BWV 812, 1. Allemande
Suite No. 1 in D minor, BWV 812, 2. Courante
Suite No. 1 in D minor, BWV 812, 3. Sarabande
Suite No. 1 in D minor, BWV 812, 4. Menuet I/II
Suite No. 1 in D minor, BWV 812, 5. Gigue
So for the most important part of the job your script comes in very handily (always missed a function like that...):
Adding the string "Suite No. 1 in D minor, BWV 812, "
into the title!
Adding increasing numbers (from 1. to 5.) is obviously not what regular expressions, -thanks again for your kind explanation...-, are made for and require a kind of algorithm like the one in the "AutoIncTrackN.vbs":
- Code: Select all
if Form.ShowModal=1 then
number = SE.Value
' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(i)
' Swap the fields
itm.TrackOrder = number
number = number + 1
Next
list.UpdateAll
End If
Even if it were possible to realize somehow it would probably be a waste of time to try to provide such a rarely needed function.
I will live happily without it...
Best regards!
fritz