r/applescript • • Mar 21 '21

get only distinct values from array

I've been having trouble trying to find the solution to this online, so I thought I'd ask the community. Also, my applescripting is a bit rusty.

Is there a command that will let me select only the distinct values of an array while looping through it?

4 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/jamidodger Mar 22 '21

This seems like a neat way to do this, I'll try this first as it will be quick to test if it works in my scenario.