That last script is perfect, just the edit for "selected tracks" would help even further. Maybe someone can figure that out for me?
Thank you!
I need to learn some basic scripting real bad.
I attempted it by replacing the code:
local num_sel = reaper.CountSelectedTracks(0)
instead of lastselected.
But i have no idea what im doing. hahaha