An alternative to trawling through the file-system for file-names which match a string pattern might be to explore the options of the pkgutil
shell command.
For a listing of installed applications, identified by bundle id, for example:
pkgutil --pkgs
For other options:
man pkgutil
To define a general listing of the names of package-installed applications, the macro below embeds a call to pkgutil --pkgs
in a JavaScript which obtains and sorts application names: