I've been using for each iterations to recursively list all files and folders in a directory. Works great except for when I need to distinguish a file from a folder to do something.
One approach I've used is to check if the name has an extension but it's not very elegant and it doesn't always fill the bill for what I sometimes want to do.
I'm not at all experienced with AppleScript and would like to know if there is a fairly simple way to do this using KM features?