• 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: Ascii number of return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ascii number of return


  • Subject: Re: Ascii number of return
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 22 Oct 2009 19:07:32 -0700

On Oct 22, 2009, at 11:32 AM, Michelle Steiner wrote:

On Oct 22, 2009, at 11:26 AM, Yvan KOENIG wrote:

The two are used for years.
Looking in TextWrangler preferences we may read:

Default line breaks

Classic Mac (CR)
Unix (LF)
Windows (CRLF)

Yes, I know all that; I'm just pointing out that there's no consistency involved. Some Mac apps use the classic Mac CR, and some use the Unix LF. Even among Apple's own applications, that inconsistency exists.

Re: Inconsistency in line separators: Yes, it exists. It's been there for at least 8 years, or more depending on how you count. Have a kewpie doll. There'd be little point in standardizing apps on one, expecting everyone to settle on one is futile, they're both valid, and you should be prepared to deal with both in your scripts. (Not to mention CR-LF pairs and even Unicode's paragraph-separator character if you're feeling generous. "paragraph" elements handle all of these.)


Re: Difficulty telling in a string literal which one you've got: Clearly, you can't visually tell the difference between CR (\r) and LF (\n), which is why we added a preference to display them as the escape sequence. See AppleScript Editor > Preferences > Editing > Escape tabs and line breaks in strings.


--Chris Nebel AppleScript Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Ascii number of return (From: Michelle Steiner <email@hidden>)
 >Re: Ascii number of return (From: James Bensley <email@hidden>)
 >Re: Ascii number of return (From: Michelle Steiner <email@hidden>)
 >Re: Ascii number of return (From: Yvan KOENIG <email@hidden>)
 >Re: Ascii number of return (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Ascii number of return
  • Next by Date: Re: watermark
  • Previous by thread: Re: Ascii number of return
  • Next by thread: Out of the office on Oct 23 2009
  • Index(es):
    • Date
    • Thread