What you want can be done with a single command:
/.play $active blah.txt 3000