Re: OS 9.1 broke (items 1 thru 0 of theList)
Re: OS 9.1 broke (items 1 thru 0 of theList)
- Subject: Re: OS 9.1 broke (items 1 thru 0 of theList)
- From: Chris Nebel <email@hidden>
- Date: Sat, 13 Jan 2001 11:33:01 -0800
- Organization: Apple Computer, Inc.
JollyRoger wrote:
>
The following works fine on every system version except OS 9.1:
>
>
[code that uses "items 1 thru 0 of theList" trimmed]
>
>
I would like to know if this change was made on purpose or if this is a bug?
It was deliberate -- there is no item 0. As Chris E. said in his post:
>
In AppleScript 1.4.3 and earlier, attempting to access item 0 of a list (e.g.
>
'item 0 of {2, 3, 4}') would produce no error and no result. In AppleScript
>
1.5 and later, it produces an 'index out of range' error.
--Chris Nebel
AppleScript Engineering