function nothing() end reaper.defer(nothing) it = reaper.GetSelectedMediaItem(0,0) if it ~= nil then ts_start, ts_end = reaper.GetSet_LoopTimeRange(0, 0, 0, 0, 0) if ts_end - ts_start > 0 then reaper.ApplyNudge(0, 1, 1, 1, ts_start, false, 0) end end