I have a large and changing Project Design data in various Format / Size(s) sorted in different folders with same name and different extensions (ai, eps, jpg, png, zip)
What is the fastest way to compare list_Project basename with only basename (Eco 201, Eco 202) without extension of other 4 sample lists? Sample list data and Script below (1500 - 2000 items)
Currently I am doing this way
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
tell application "System Events"
set list_Project to {"Eco 201", "Eco 202", "Eco 203", "Eco 204", "Eps 205", "Eps 206"}
set listJpg to {"Eco 201", "Eco 202", "Eco 204", "Eps 205"}
set listEps to {"Eco 201", "Eco 202", "Eco 204", "Eps 205", "Eps 206"}
set listPng to {"Eco 201", "Eco 202", "Eco 203", "Eps 206"}
set listZip to {"Eco 201", "Eco 202", "Eco 203", "Eco 204", "Eps 206"}
-- Compare each item of list_Project to items of listJpg
set missingJpg to {}
repeat with i from 1 to count list_Project
set Check1 to (item i of list_Project)
if Check1 is not in listJpg then set missingJpg to (missingJpg & Check1)
end repeat
# result > missingJpg is now {"Eco 203", "Eps 206"}
# looping repeating with other lists
end tell
([applescript] and [/applescript] posting tags added by NG.)