Mark's right, Gary, no need to bother with the shell when pure appleScript and the finder can handle this one, with a bit of recursion.