onecopy solutions

Roman Thilenius's icon

for bpatchers i have found a workaround to get "onecopy" behaviour: i am writing a flag in a prefs file, which will prevent a second copy of the bpatcher stay open when you launch one - and which will be cleaned on closebang so that you can open one copy of the patcher again.

in another situation this method must be avoided, and so i need another solution.

this other situation is that a patch is opened via "file filename" or "help filename" to [pcontrol].

how can i "onecopy" such a patcher window?