Can patterns be written for things not normally considered to be applications?
Yes. A pattern can be written for almost any set of text output of any name and type, even spanning Eclipse projects. For example, there is a sample pattern provided for LDIF files. This pattern takes an application definition describing groups, users, and membership and generates an LDIF file for import into an LDAP directory.