File display not fully updated after Evaluator Function

I used this code to try out Opus 13.19.3 new Evaluator Function button:

for (i = 0; i < 10; i++) {
	Run("CreateFolder NAME=" + i);
}

It runs fine (and fast :+1: ) with a few quirks:

  • After the code has finished, only the last 40-60% of the created folders are selected.
  • Occasionally, the sort order is slightly incorrect
  • Occasionally, all folders are displayed, but vanish after a second

Everything will be okay after a refresh.

10 new folders (Selection)

50 new folders (Selection+Sort order)

100 new folders (Selection+Sort order)

100 new folders (Folders missing)

It seems to be because it's running asynchronously:

for (i = 0; i < 10; i++) {
	Run("dopusrt /argsmsgbox " + i);
}

One-time execution:

function OnClick(clickData)
{
    var cmd = clickData.func.command;
	for (i = 0; i < 10; i++) {
		cmd.AddLine('dopusrt /argsmsgbox ' + i);
	}
	cmd.Run()
}

Yes it is, bug in the command parsing. If you supply a second arg (even an empty string) it should behave better.

Will improve further next update.

1 Like