• 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: Delete an item in a list ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete an item in a list ?


  • Subject: Re: Delete an item in a list ?
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 12 Nov 2004 09:29:35 -0800

On 11/12/04 9:18 AM, "Bernard Bernu" <email@hidden> wrote:

>
> Le 12 nov. 04, à 17:33, Paul Berkowitz a écrit :
>
>> set rangeList to createarray 6 range {5.0, 10.0} as list of real
>>
> almost that:
> set rangeList to (createarray 6 range {5.0, 10.0}) as list of real
> otherwise it understands : {5.0, 10.0} as list of real
>

-- {5.0, 6.0, 7.0, 8.0, 9.0, 10.0}

Neat. Silly of me not to check that.

Emmanuel, would there be any chance of an optional 'as list of integer'
parameter/coercion for such cases where this would work without error? It
would save having to coerce each list item separately. (You might need to
watch out for - or maybe even allow for - cases where the reals are not
whole numbers but would round down to the nearest integer.)

--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Reading contents of a clipping file?
  • Next by Date: set a mail content in a File Maker text field
  • Previous by thread: Re: Delete an item in a list ?
  • Next by thread: set a mail content in a File Maker text field
  • Index(es):
    • Date
    • Thread