in reply to filenames with spaces causing problems
find . -type f -print0 |xargs -0 /your/script
Maybe not exactly what you want, but may help.