title: Read and output sentences (with spacing between words) in AppleScript
body: <p>I am trying to load sentences from a text file into variables, and then output them (In a browser window, for example).</p>
  
  <p>My problem is that after loading the sentence (paragraph) into a variable, it is outputted without spaces between the word.</p>
  
  <p>Ex. "Hello how are you?" loaded into a variable, and then typed using keystroke would appear as "Hellohowareyou?"</p>
  
  <pre><code>set theData to "/Users/User/Desktop/theData.txt" 
  set theText to read theData 
  set EventDescription to paragraph 1 of theText as text
  
  tell application "System Events"    
   tell process "Safari"      
    keystroke EventDescription as text    
   end tell 
  end tell
  </code></pre>
  
  <p>edit: If I set the clipboard to the variable "EventDescription" and then paste it, the whitespace is preserved. Only when using "keystroke" is it not.</p>