I am responding to myself, in case other guys would be interested in what I found out. Reaper knows how to set time selection to selected items, how to select items in a selected tracks and how to select all tracks in a group. So, what I did is create a track with an empty item corresponding to the length and position of the loop I want. Then, I grouped that one track in - say - group 01 + renamed this group by the name of the song. Then, I put these actions together as a custom macro : Group : select all tracks in group 01 Item : select all items in selected tracks Time Selection : set time selection to selected items Transport : toggle repeat This allows me to have one custom actions macro per loop I want to repeat or not. It takes a bit of preparation and programming, but it works.