Is it possible to to register a folder extension on Mac to be opened with a specific application (something like .app folders behave in a special way)? If it's possible, then how? I'm looking for a solution similar to this: related question, only for folders, not files.
I had a look at the reference of the UTIs UTIs, but I did not find any identifier that seems suitable (e.g. something like public.folder-extension).
Is it possible to do this at all? On the GUI I did not see any way to do it either (for a folder with a specific extension, there is no "Open With..." option). [Important: I do not want to do this on the GUI, this was only a remark to say why I think it might be impossible.]