You asked about AppleScript.
You can use ls in a shell to get a list of the contents of a directory, add the -R flag to recurse through directories.
What are you trying to do?
Topic:
App & System Services
SubTopic:
Core OS
Tags: