• 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: Removing items from lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing items from lists


  • Subject: Re: Removing items from lists
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 08 Oct 2002 00:13:44 -0700

On 10/8/02 12:01 AM, "email@hidden" <email@hidden> wrote:

> On Sunday, October 6, 2002, at 10:16 AM, Goldfish wrote:
>
>> What would be the correct syntax for removing an item from a list?
>>
>> e.g. set x to every item of {"the","quick","brown","fox"} except
>> "quick"
>>
>> Any ideas?
>
> If your list is of items all of the same class, you can use:
>
> set L to {"the","quick","brown","fox"}
>
> set item 2 of L to missing value -- or anything else that isn't a string
> every string of L
> --> result: {"the","brown","fox"}

Bingo! Very nice, Scott.

--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Re: Removing items from lists (From: email@hidden)

  • Prev by Date: Re: Removing items from lists
  • Next by Date: Re: 'sort' command-alternative?
  • Previous by thread: Re: Removing items from lists
  • Next by thread: OT Address Book Rant
  • Index(es):
    • Date
    • Thread