Re: ASCII vs. MacRoman (was Re: Standard Additions 'read' command - basic questions)
Re: ASCII vs. MacRoman (was Re: Standard Additions 'read' command - basic questions)
- Subject: Re: ASCII vs. MacRoman (was Re: Standard Additions 'read' command - basic questions)
- From: Walter Ian Kaye <email@hidden>
- Date: Mon, 26 Jan 2004 14:54:41 -0800
At 11:08a -0800 01/20/2004, Christopher Nebel didst inscribe upon an
electronic papyrus:
On Jan 20, 2004, at 4:08 AM, Axel Luttgens wrote:
Should the class of the delimiter define the interpretation of a
file contents?
Should the "as ..." part (defaulting to some class -which one?)
induce a coercion of the delimiter?
Should the "as... " and the delimiter mandatoryly be of the same class?
Should the idea of byte-per-byte access to any file just be abandoned?
The current rule is that the "as" parameter determines the "format"
(for lack of a better word) of the data. By default, it's typeText,
which is not perfect, but usually what people want, meshes well with
ASCII number/character (crosses self), and is as far as I know
guaranteed to work with any byte stream, unlike any of the Unicode
encodings. I have no plans to change this, as it makes more sense
than any alternative I've been able to think of. The notion of raw
binary I/O is somewhat counter to AppleScript philosophy, but
undeniably interesting.
Surely you jest?
AS would be laughed off the planet (including by me) if it lacked binary I/O.
Gotta go see what the Perl people are up to on this topic...
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.