Re: Removing items from lists
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.