title: How to replace "\n" in AppleScript?
body: <p>I want to replace "\n" in Applescript. Whenever I write that, it just brings whatever is after <code>\n</code> to the next line. How do I do that?</p>
  
  <pre><code>set newVar to my replaceText("\n/blah-blah", "")
  </code></pre>
  
  <p>EDIT:</p>
  
  <pre><code>set newVar to my replaceText(linefeed, "", newVar)
  log newVar
  </code></pre>
  
  <p><code>newVar</code> still prints with <code>\n</code> towards the end.</p>