Created
October 8, 2018 10:39
-
-
Save kern-me/e03d5467876ba6db6c2edf9e82040812 to your computer and use it in GitHub Desktop.
Applescript: Remove Duplicates from a List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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