I use this:
function makeDeadlyNote() {
WriteParchmentGui.popDialog(WriteParchmentGui);
WriteParchment_BodyText.setValue("<bitmap:base/data/fx/lightning/lightning.dml>");
WriteParchmentGui.write(WriteParchmentGui);
}
I'm the reason this was fixed in Blockland, though. I'd post the other problem from AoT I know about, but it also works in Blockland. Need Badspot to patch that, too.
... But damn, your way is better.