k, i'm making a dynamic-patching manager that open/ closes patches, routes audio, etc. I'm running into a bug with menuclose (to kill a patch) because, while it works fine for killing one patch when there is only a single instance open, it crashes pd when there is more than one instance open. I feel like i had it working that it only closed the most previously opened instance of that patch, but now, like a beautiful woman, pd had a change of heart.
I triend using the [namecanvas $0-r] trick to close the patch with a menuclose command to the specific patch with no luck.
has anyone run across/ fixed this before?