Try this EEL script: Save the script to your computer -> Load from the action list (ReaScript: New/load...)
Wow, thanks a million! Works beautifully. For some reason I thought Reaper is only scripted with Python.
Cool script :) Added to reateam reascript repo for reapack :P
For some reason this script moves the edit cursor as well. Is there something I need to do to keep it from doing that?