A year ago, I wrote a wrapper that converted strings to FourCharCodevalues at runtime. I later wondered if making a macro version was possible. The answer is yes, because the "Macros" chapter uses that as an example. So I'm trying out my first macros by doing a FourCharCode macro with error checking, etc.
Very cool. I did the same a while back (private repo), but have since moved to a dedicated struct since I wanted things to be strongly typed.
I also wanted to avoid the runtime logic of String to Uint32 so created a utility application to generate code for constants which takes as input a variable name and the 4CC. e.g. folderType and ƒldr produces: