Skip to content

Instantly share code, notes, and snippets.

@kern-me
Created October 8, 2018 10:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kern-me/e03d5467876ba6db6c2edf9e82040812 to your computer and use it in GitHub Desktop.
Save kern-me/e03d5467876ba6db6c2edf9e82040812 to your computer and use it in GitHub Desktop.
Applescript: Remove Duplicates from a List
on list_remove_dupes(theList)
set newList to {}
repeat with x from 1 to count of items of theList
set n to item x of theList
if n is not in newList then set end of newList to n
end repeat
return newList
end list_remove_dupes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment