How to list files of any installed app in the MAC programmetically?
There are three ways to do this:


pay for or find people to install every possible app in a controlled environment and create a database of files and app versions
make code to patrol the file system and catalog changes and try to piece apart which changes resulted from which app install
pray all app developers use either the App Store distribution method or write an installation package receipt with a .bom file


Practically, none of these options is easy. The penalty of bad patrol code is worse than whatever problem you may be trusting to solve. The rest have miserable coverage or onerous errors and costs.