When running PreviewAggregator.js on PixInsight Core 01.08.04.1199 Ripley (x64) in OSX, the following warning message is always presented in the console:
run --execute-mode=auto "/Applications/PixInsight/src/scripts/PreviewAggregator.js"
Processing script file: /Applications/PixInsight/src/scripts/PreviewAggregator.js
** Warning [156]: /Applications/PixInsight/src/scripts/PreviewAggregator.js, line 293: assignment to undeclared variable n
To avoid the warning, I made the following change on line 293 of the script.
replace:
for (n = 0; n < this.dialog.target_List.numberOfChildren; n++)
with:
for (var n = 0; n < this.dialog.target_List.numberOfChildren; n++)