I'm making this simple script that:
1) selects each item successively
2) runs the action "Time selection: Insert empty space at time selection (moving later items)"
This script should in theory insert empty space between each selected item.
Here's what I got, but it's not working:
Code:
function main()
count_sel_item = reaper.CountSelectedMediaItems (0)
for i = 0, count_sel_item - 1 do
reaper.GetSelectedMediaItem(0, i)
reaper.Main_OnCommand(40200, 1, 0)
end
end
main()
reaper.UpdateArrange()