I would like a bpatcher to script some things inside itself (which works fine) and then when it is done scripting I would like it to embed itself in its parent. Why do these lines of code in a js object inside the bpatcher file not work?
this.patcher.box.message("sendbox", "embed", 1);
for example, if I make a bpatcher and give it some scripting name x, I can send it this message with a thispatcher object and it will embed itself:
I had a problem trying to do exactly this in Windows. It turned out that the problem was the forward slashes that Windows uses in the absolute path passed to the name attribute. What worked for me was changing the forward slashes to backward slashes.