on subOutlineToScript (adrnode, adrscript) local (xstruct = script.data.xStructTemplate, adrsub, ct = 1, name) local (adropml = xml.getaddress (@xstruct, "opml")) local (adrbody = xml.getaddress (adropml, "body")) for adrsub in adrnode if nameof (adrsub^) endswith "outline" name = string.padwithzeros (ct++, 5) adrbody^.[name + "000\toutline"] = adrsub^ local (opmltext = xml.decompile (@xstruct)) op.xmltooutline (opmltext, adrscript, objtype:scripttype)