Hello, I found a comment by Juan a while back that it was now easy to convert a script so it could use process containers. But he did not say how it is done. I new at this script-writing business and do not see an obvious path to accomplishing this goal. Could someone point me to a description of how it is done, or suggest how to modify my script fragment below? Or is it not that easy and requires coding several more functions?
Thanks much, Alex
function main() {
Console.abortEnabled = true;
if (Parameters.isGlobalTarget) {
Console.writeln("Global execution");
this.StarsBeGone(ImageWindow.activeWindow.mainView);
Console.writeln ("DONE");
Console.hide();
return;
}
if (Parameters.isViewTarget) {
Console.writeln("View execution");
this.StarsBeGone(ImageWindow.activeWindow.mainView);
Console.writeln ("DONE");
Console.hide();
return;
}
// execute via user interface
let parametersDialog = new parametersDialogPrototype();
if( parametersDialog.execute() == 0 ) return;
// normal execution via a dialog
this.StarsBeGone(ImageWindow.activeWindow.mainView);
Console.writeln ("DONE");
Console.hide();
};
main();
Thanks much, Alex
function main() {
Console.abortEnabled = true;
if (Parameters.isGlobalTarget) {
Console.writeln("Global execution");
this.StarsBeGone(ImageWindow.activeWindow.mainView);
Console.writeln ("DONE");
Console.hide();
return;
}
if (Parameters.isViewTarget) {
Console.writeln("View execution");
this.StarsBeGone(ImageWindow.activeWindow.mainView);
Console.writeln ("DONE");
Console.hide();
return;
}
// execute via user interface
let parametersDialog = new parametersDialogPrototype();
if( parametersDialog.execute() == 0 ) return;
// normal execution via a dialog
this.StarsBeGone(ImageWindow.activeWindow.mainView);
Console.writeln ("DONE");
Console.hide();
};
main();