I want to replace "\n" in Applescript. Whenever I write that, it just brings whatever is after \n
to the next line. How do I do that?
set newVar to my replaceText("\n/blah-blah", "")
EDIT:
set newVar to my replaceText(linefeed, "", newVar)
log newVar
newVar
still prints with \n
towards the end.
Found this solution to your problem, Go to preferences-->Editing and check Escape tabs and line breaks in strings
http://forums.macrumors.com/showthread.php?t=1395073
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With