FolderItem.MacType and MacCreator

FolderItem.MacType and FolderItem.MacCreator are noted as Deprecated. Good.

But, how do I use Uniform Type Identifiers ?

BTW: yes, I read Uniform Type Identifiers and all three PDF books… and I saw… .