How to compare contents of a folder against a list?
How to compare contents of a folder against a list?
- Subject: How to compare contents of a folder against a list?
- From: "Patrik B." <email@hidden>
- Date: Wed, 2 May 2007 09:22:51 -0700
I have a folder with 736 images in them and am trying to write a script that
will give me a report if I am missing anything.
The example scenario is as follows:
-----------------------------------
One directory has my master set in it. For example "Book1.psd", "CD1.tiff"
my script has a variable set called "SPA", "FRE", "GER", "ITA", "ENG" etc.
I now want to compare my master set using the prefix variable and check if the
folder with 736 images contains a complete set for each language. If not then
I want the names of the images that are missing given back to me in a variable
so I can send it to my art department and say so and so images are missing.
The part I need help with is the comparing of the two lists. How do I check if
a folder contains "FRE-Book1.psd" for example. I think the rest I can figure out.
Also would it be most efficient to cycle through each file name using two
repeats or is there a faster way or Scripting addition that does it faster.
Best, Patrik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden