How can I dynamically generate names for FTM objects?

From ftm

Q: I need to dynamically build the name of the fmat (using sprintf, for example), and I can't find a way to do it with ftm.mess. (Mathieu Chamagne)

A (global): Organising your data into FTM structures is the way to go, because it is the only efficient way. You may need to change your coding style, but you will gain a better control over the data, to store and retrieve them, even with automated processes. (Jean-Philippe Lambert)

A (particular): Normal max messages won't work in this case because they only output a string (the message itself) while ftm.mess outputs a reference to the object you are calling. This creates then the problem that when you try to manipulate the names in the ftm.mess it treats $buf not as a string but as an object. It actually does this for anything that starts with '$', this character is not treated as a character but as a reference to a variable. (Miguel Ortiz)

Ref: This mailing list thread contains the original discussion and *many* example patches.