• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to add "\n" to text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to add "\n" to text?


  • Subject: Re: How to add "\n" to text?
  • From: AppleScript Greg <email@hidden>
  • Date: Mon, 1 Oct 2001 23:08:13 -0500

On Monday, October 1, 2001, at 10:48 PM, Jaime Magiera wrote:

I'm trying to create a text file that's UNIX friendly and can't figure out how to get a new line "\n" written to the text file from the script.

Any suggestions?

You need to look at ASCII character 10 (I think or 13) . That will put a UNIX newline character in it. You can always look at my script removeUNIX (which removes UNIX newlines and replaces them with Mac newlines. IT has the correct ASCII characters for the correct machine.

<http://www.citizenstrange.com/applescript/#removeUNIX>

Greg Strange


  • Follow-Ups:
    • Re: How to add "\n" to text?
      • From: Jaime Magiera <email@hidden>
References: 
 >How to add "\n" to text? (From: Jaime Magiera <email@hidden>)

  • Prev by Date: Re: How to add "\n" to text?
  • Next by Date: Re: How to add "\n" to text?
  • Previous by thread: Re: How to add "\n" to text?
  • Next by thread: Re: How to add "\n" to text?
  • Index(es):
    • Date
    • Thread