con una ricerca su Scripting ottieni tutto il codice che ti serve.

ciao