Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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