Re: Removing items from lists
Re: Removing items from lists
- Subject: Re: Removing items from lists
- From: email@hidden
- Date: Tue, 8 Oct 2002 03:01:25 -0400
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"}
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden
_______________________________________________
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.