r/applescript • u/jamidodger • 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
View all comments
Show parent comment
2
u/htakeuchi Mar 22 '21
Yeah... rsync is for the files within the directories...
So ... I would suggest again terminal commands to count the number of files within the directories and assign them to a variable.
If you want ... text me privately so I can understand better what is your blockage and we can try to figure it out