[[ Bug 9940 ]] Don't display modal dialog for 'open printing' in script ...

...debug mode