Thank you for this but I am looking to change the track selection in the arrange, not just the midi item selection.
I have a passthrough for
Script: X-Raym_Select only tracks of selected items.lua
as my workaround
But I was hoping there was a setting that would also change my track selection automatically.
It is called the "track list"