Improved "enableprinting" script interface.