Re: carriage return & line feeds
Re: carriage return & line feeds
- Subject: Re: carriage return & line feeds
- From: Arthur J Knapp <email@hidden>
- Date: Fri, 08 Jun 2001 12:17:12 -0400
>
Date: Thu, 7 Jun 2001 14:11:59 -0700
>
From: Christopher Nebel <email@hidden>
>
Subject: Re: carriage return & line feeds
>
Just to beat this into the ground, the traditional line-end values are:
>
>
Mac OS: ASCII character 13 (aka "\r", aka carriage return)
>
Unix: ASCII character 10 (aka "\n" to Perl and C users, aka line feed)
>
Windows: ASCII character 13 & ASCII character 10 (aka "\r\n", aka crlf)
>
AppleScript doesn't support the literal "\n" in strings, but a future
>
release will.
Yea !!!
How about a general byte-reference system as well:
set someString to "This is ASCII chararacter 4: \0x04"
The ASCII commands from Standard Additions just take too long to execute
when they are called repeatedly for each character of a large string.
I know, I know: it isn't "English-like"...
>
Decent text editors don't care which line ending style you use, as long
>
as you're consistent.
sorry, couldn't resist:
Decent script editors don't change escaped-characters into their
literal format:
set someString to "Hello\rWorld"
-- after compile:
set someString to "Hello
World"
I mean, it kind of defeats the whole purpose of escaping in the
first place, doesn't it?
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://www.AppleScriptSourceBook.com