Re: Eliminating duplicate items from a list
Re: Eliminating duplicate items from a list
- Subject: Re: Eliminating duplicate items from a list
- From: Mark Alldritt <email@hidden>
- Date: Tue, 04 Sep 2007 17:00:35 -0700
- Thread-topic: Eliminating duplicate items from a list
Hi,
> In Lotus Programming I can wrap a list in an @Unique(List variable)
> command and it strips out all duplicate items. What is the simplest way to
> do it in AS?
>
> I'm thinking it may have to be with a repeat and using text item
> delimiters, right?
This can be done using my free Record & List tools scripting addition:
http://www.latenightsw.com/freeware/RecordTools/index.html
Here's an example:
set a to {1, 3, 4, 3, 5, 4}
union of a and a with removing duplicates
--> {1, 3, 4, 5}
Cheers
-Mark
------------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 Script Debugger 4.0 - AppleScript IDE
WEB: http://www.latenightsw.com/ FaceSpan 4.3 - AppleScript RAD
Affrus 1.0 - Perl Debugging
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden