It's easy enough to change the current selection with a macro but is it possible in a command written in Ruby?

I've written various scripts for TextMate 1 and 2 but I don't remember doing this.

Thanks,
Richard

skype: rdrake98
blog - twitter