Re: interesting discovery (trying to get record labels as strings)
Re: interesting discovery (trying to get record labels as strings)
- Subject: Re: interesting discovery (trying to get record labels as strings)
- From: Christopher Nebel <email@hidden>
- Date: Thu, 6 Dec 2001 07:24:31 -0800
On Thursday, December 6, 2001, at 02:11 AM, Emmanuel wrote:
There have been versions of AppleScript where having it return ASCII 0
as
string crashed the machine - whatever the editor.
I don't know whether this is considered a bug by Apple. If it is, then I
don't know whether it has been fixed in any version of AS. Personally, I
still avoid having a string displayed when it's likely to contain ASCII
0's.
This should have been fixed in AppleScript 1.6, if I'm reading the bug
report right. The problem was that it would expand the '\0' to a string
from a random address. Sometimes you'd get lucky, and it would start
with a zero byte so everything worked, but more often you'd get garbage
or a crash.
--Chris Nebel
AppleScript Engineering