• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OS 9.1 broke (items 1 thru 0 of theList)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >OS 9.1 broke (items 1 thru 0 of theList) (From: JollyRoger <email@hidden>)

  • Prev by Date: Re: [ANN] Photo Essay - AppleScript at the Expo
  • Next by Date: Newbie asks a question
  • Previous by thread: OS 9.1 broke (items 1 thru 0 of theList)
  • Next by thread: Re: OS 9.1 broke (items 1 thru 0 of theList)
  • Index(es):
    • Date
    • Thread