Sending files to Photoshop

I’ve tried searching this forum, but couldn’t find what I was looking for. Also, I just started to screw around with AppleScript, so I really don’t know what I’m doing.

Essentially what I need to do is have the script start in a given directory and go in each sub-directory and find all the JPEGs in the given directory and send them to Photoshop’s automated process that will then create a PDF file from the JPEG and save it with the same name and in the same directory as the original JPEG. Some dirs will have 1 file while others might have up to 10 (>1 will result in multi-page PDFs).

I guess what I really need help with right now is how to start in a directory and then go into each sub-dir. Once I have that, I’m pretty sure I can figure out the rest. Any help would be greatly appreciated.

Thanks,
Numb