Applescript locate and copy images from a spreadsheet list
I am a newbie to applescript and I'm still trying to figure out how to use it. I was looking at this similar discussion (https://discussions.apple.com/thread/3325583), but I still can't figure out how to tweak it for my own purposes.
Basically, I have a Microsoft Excel spreadsheet that has a list of menu items like this:
Menu Items | Images Filename |
Hot Dog | |
Hamburger | |
Chicken Sandwich | |
Ham Sandwich | |
Mini Corndogs |
Then I have a folder with many food images:
/Images-Folder/
bbq_sandwich.png
chicken_wrap.png
salad.png
fish_sandwich.png
grilled_cheese.png
hot_dog.png
hamburger.png
sandwich_with_chicken.png
sandwich_with_ham.png
corndogs.png
.....
.....
I want to do two things. 1. Have applescript duplicate the found images into my /Menu/ folder. 2. Have applescript copy the file names of the found images into Column B.
/Menu/
hot_dog.png
hamburger.png
sandwich_with_chicken.png
sandwich_with_ham.png
corndogs.png
Menu Items | Images Filename |
Hot Dog | hot_dog.png |
Hamburger | hamburger.png |
Chicken Sandwich | sandwich_with_chicken.png |
Ham Sandwich | sandwich_with_ham.png |
Mini Corndogs | corndogs.png |
Finding the images that have an exact match is probably simple, but I also have situations where the item name and file name are not identical (Chicken Sandwich <-> sandwich_with_chicken.png). Is there any way to script a search that can find a partial match? (The same issue with Mini Corndogs should find corndogs.png).
Any help will be greatly appeciated.
Applescript-OTHER, Mac OS X (10.7.2)