Copy to New TXT File?

Hey Tom

Guess things have changed as this script no longer works. It prompts for a file name then turns the target folder into a file. Do you have ideas on how to update this?

Also, could it be tweaked to simply output a file for each line of text in the system clipboard without the prompt?