Create a smart folder, alt/option-apple n. For the criteria, under Any, change it to application. Then for Kind, click on Comment (for example) is ... your word(s) (I use dockapp which is unique enough).
For the apps you want, do a show info, Apple i, and type dockapp (or whatever you choose)...