Great script! I tried it for the first time a couple of days ago and it worked fine (PI 1.8.8-9 and script v0.2.1). However, when I again tried to use the script today, I could process the preview, but when trying to continue with the full image, this error message appeared:
Attempt to execute a Script instance recursively (view context).
Sorry, but this is not supported in current PixInsight versions.
So, something is wrong, but I cannot figure out wat. I have done no update since the script worked, so this is strange...