"Duplicate Track(s) without Content"-Option

Sorry for resurrecting such an old thread, but I think I found the issue.
By selecting a track, events you have selected before dont get unselected automatically (otherwise you could not copy/paste events on another track obviously). If you now duplicate the track with the macro, also the events you have selected before get deleted, because “Select all events on track” does not seem to unselect them in this case. It is still weird, because if you use that command alone it unselects everything.
So I would suggest to add a “unselect events” command (you can do this with the project logical editor) at the beginning of the macro and you should be OK.