import "@johnlindquist/kit"
await hide();
await applescript(String.raw`
set texttowrite to the clipboard as text
tell application "System Events"
repeat with i from 1 to count characters of texttowrite
if (character i of texttowrite) is equal to linefeed or (character i of texttowrite) is equal to return & linefeed or (character i of texttowrite) is equal to return then
keystroke return
else
keystroke (character i of texttowrite)
end
if (character i of texttowrite) is equal to " " then
delay (random number from 0.01 to 0.1)