Macro to Remove Tracks

Hello,

I have a project with 14 tracks in it.

I would like a macro to delete all of the tracks except for track 3 and 11.

I can’t seem to find any information on how to do this.

Your help would be greatly appreciated.

Thanks

SelectTracks:Mode="Set" Track="0" TrackCount="2"
SelectTracks:Mode="Add" Track="3" TrackCount="7"
SelectTracks:Mode="Add" Track="11" TrackCount="3"
RemoveTracks:

Keep in mind that your first track is track 0 in Audacity, not track 1 - I think!

Should TrackCount=“4” be TrackCount=“3”? Just wondering.

Yes, but it won’t do any harm. If there is a “track 15”, it will be deleted.
I’ll correct it to avoid confusion.

Done.