Quote:
somehow "select" an item by its track item number
|
Better use API functions as much as possible. This keeps things simple and more predictible withut dependency and other actions behaviors.
Good news is that what you are looking for already exists:
reaper.GetTrackMediaItem( tr, itemidx )
Note that this doesn't "select the item", it just returns an item for the script, but you have function to seletc items after that if you want.
reaper.SetMediaItemSelected( item, selected )