• 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: Eliminating duplicate items from a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Eliminating duplicate items from a list
      • From: Joe Stern <email@hidden>
    • Re: Eliminating duplicate items from a list
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: FileMaker AppleScript question...
  • Next by Date: Re: Eliminating duplicate items from a list
  • Previous by thread: Re: Eliminating duplicate items from a list
  • Next by thread: Re: Eliminating duplicate items from a list
  • Index(es):
    • Date
    • Thread