Type Text Anywhere

In Automator using ‘Run Applescript’ action, this Applescript types in various text where the cursor is and there is a delay of 1 second that prevents the various app from automatically adding a period in certain circumstances.

on run
   tell application "System Events"
      keystroke "text stuff 1"
      keystroke return
      keystroke "text stuff 2"
      keystroke return
      keystroke "text stuff 3"
      keystroke return -- creates a double space in leading
      keystroke return
      keystroke "text stuff 4"
      keystroke return
      keystroke "City name"
      keystroke space
      delay 1 --this delay creates two spaces without creating a period
      keystroke space
      keystroke "text stuff 5"
   end tell
end run