Re: Ascii number of return
Re: Ascii number of return
- Subject: Re: Ascii number of return
- From: Emmanuel LEVY <email@hidden>
- Date: Fri, 23 Oct 2009 00:08:03 +0200
0.02€ from Satimage-software on this:
1. Smile offers 2 kind of windows for text: windows "à la Mac", where
you make CR's, and which save as Mac encoding, and windows "à la
Unix", where you make LF's and which save as UTF-8.
2. While grep only wants LF's, Satimage's "find text" and "change"
understand both as the line separator.
Emmanuel
On Oct 22, 2009, at 11:58 PM, Thomas Fischer wrote:
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 (email@hidden
)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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
_______________________________________________
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