crawl through drive and convert files

I've used AppleScript occasionally over the years, but am a novice.

I have many files from a now defunct drawing package (fooDraw, file extension FOO). I'd like to convert them all to Adobe Illustrator files.

One way to do this would be to crawl through my Documents folder, to find any .FOO files. This should be doable, but I'm not sure how to.

When the script finds one, can it get the file name and path? If so, it could tell application fooDraw to open that file, select all, and copy. Then it could tell application Illustrator to open a new file, and paste.

But then, I need to tell Illustrator to save the file in the same directory, with the same file name.

Any help, or ideas where I might search?

TIA

crawl through drive and convert files
 
 
Q