title: Parsing a set of lines in Applescript
body: <p>I am trying to parse a set of lines read from a file in Applescript.</p>
  
  <p>This is how my code looks:</p>
  
  <pre><code>my status_dialog(indexData)
  set AppleScript's text item delimiters to return
  set indexFreq to (text items 1 thru 1 of indexData)
  </code></pre>
  
  <p>indexData contains a set of lines.
  The line delimiter is not working. indexFreq returns me the whole set of lines again instead of the first one.</p>
  
  <p>I am a newbie in here and the online resources arent helping me in this.</p>
  
  <p>Many thanks!
  Pradeep</p>