Is there any way that this can be automated of pinning a newly installed application to a specific namegroup?

Thanks,
John.