How to highlight/select the text in a TextEditor in an AlertWindow?

Is there a way to do this without using a Timer callback? I’d really like to not fragment my code just to highlight this text.