• 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: Thomas Fischer <email@hidden>
  • Date: Thu, 22 Oct 2009 23:58:52 +0200

Hi Michelle,

actually things might even be more complicated.
For example, in my TextWrangler I have a CR (if I set it in the preferences), but when I copy it to AppleScript Editor, I get an LF. And an LF from AppleScript Editor becomes a CR. So if you copy from Mail to AppleScript Editor, you may not know what was there to begin with…


To increase the confusion, Revolution (a nice scripting language) uses the constant CRLF as a name for ascii 13 + ascii 10; but the constants CR, LF, linefeed and return all are evaluated to ascii 10.

So you can never really know what you get as an end of line marker, but this is true in general for any file you might find on the internet.
After you got used to this you can try to figure out when you need Mac- style file paths and when you have to use POSIX paths…


All the best
Thomas

Am 22.10.2009 um 20:32 schrieb Michelle Steiner:

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

Hello Michele

It's Michelle, with a double "l". :)

The two are used for years.
Looki,g in TextWrangler preferences we may read:

Default loine 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.


-- Michelle

--
How many dyslexics does it change to take a light bulb?

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


This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Ascii number of return
      • From: Emmanuel LEVY <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: Ascii number of return
  • Previous by thread: Re: Ascii number of return
  • Next by thread: Re: Ascii number of return
  • Index(es):
    • Date
    • Thread