While using the following code to enumerate the filegroups of a tab came to a problem.
function OnClick(clickData)
{
var tab = clickData.func.sourcetab;
var groups = tab.filegroups;
for (var groupEnum = new Enumerator(groups); !groupEnum.atEnd(); groupEnum.moveNext())
{
Log(groupEnum.item());
}
Log(groups.count);
}
function Log(msg)
{
DOpus.output(String(msg));
}
It produces the following sample output
As you can see there are three groups (Jpg, mp4, quicktime) in the tab. But there shows a a fourth group ("unspecified") in the logs which does is not visible in the tab. Is this an intentional behaviour or a bug? Couldnt find a clue in the docs.
Right now i have to substract 1 from groups.count to end up at the "right" amount of groups.