esatto scusa utilizzando il primo script che mi hai dato funziona.