Forum Discussion
tristaanogre
15 years agoEsteemed Contributor
Okay, here's a rough hack. However, you should be able to take this and modify it for file output, manipulating what is returned by "MappedName" to get just the last bit of it that you're looking for.
function ExportAliasTree(AliasObject)
{
var ArrayOfChildren, i;
ArrayOfChildren = AliasObject.FindAllChildren("MappedName", "Aliases.*", 1);
ArrayOfChildren = (new VBArray(ArrayOfChildren)).toArray();
if (ArrayOfChildren.length == 0)
{
ArrayOfChildren = AliasObject.FindAllChildren("MappedName", "NameMapping.*", 1);
ArrayOfChildren = (new VBArray(ArrayOfChildren)).toArray();
}
for (i=0; i < ArrayOfChildren.length; i++)
{
Log.AppendFolder("New Level")
Log.Message(ArrayOfChildren.MappedName)
ExportAliasTree(ArrayOfChildren)
Log.PopLogFolder()
}
}
function test()
{
ExportAliasTree(Aliases);
}