list file names in multiple folder levels

I’m reletively new to applescripting and could use some help…

I would like to make a script that gets file names, not the folder names up to 3 folders deep. I would like to be able to list the file names into a page document (quark probably). Can anyone help?

This may work:

do shell script "find /path/to/dir -type f -maxdepth 3 -exec basename {} \;"

You maybe also interested in two scripts included in the “kapullo” package, called “quick catalog” and “hierarchical catalog” :?:
http://www.macscripter.net/scriptbuilders/category.php?id=1788