Macro "Repeat" function?

Hi Guys,

I’m currently building an ‘unattended stem bouncing’ macro (Mac OSX) and so far, so good. The last step I need in my chain is to ‘repeat’ the macro chain-commands until it reaches the last track. I’ve looked everywhere and can’t find this function, does anyone know? I will happily share the macro with you all if I can get it to work.

Thanks!