Copy txt from web, append txt and URL into text editor running in background?

This script

runs in an Execute Shell script action

osascript -l JavaScript path to script file

as long as the NSNotification option near the top of the script is set to false. (You can just add a KM notification after the execute script action).