If the user initiates the script and they don't have a text frame selected, create a text frame on post import and populate it with the text.
This will also involve updating the dialog that tells the user they don't have a text frame selected (#12) to give them the option to cancel and select a text frame or continue and let the script create one for them.