Select Printer script

Hi, is it possible to select a printer from tag?
Example when Tag Value change select printer 1
When Tag Value change again select printer 2

def valueChanged(tagPath, previousValue, currentValue, initialChange, missedEvents):
     if system.tag.read("[.]STAUTR").value:
         shared.report.difetti.printReportDifetti(currentValue.value)

How can i change this script for appear one window where can i select the printer for print?