Re: Ascii number of return
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