Paste keystrokes automatically with Apple Automator

Want to paste a text into some place?


Create an AppleScript with this code:

on run {input, parameters}
  delay 5

  tell application "System Events"
    repeat with charOfInput in (characters of (input as text))
      keystroke (charOfInput as text)
      delay 0.1
    end repeat
  end tell

  return input
end run

The final result can look like this:


Happy coding! – Found a mistake or a typo? Please submit a PR to my GitHub-repo.

Like this post? Follow @adriaanvrossum on Twitter