https://docs.google.com/spreadsheets/d/1i5[...]aIUD/edit
If you change the ending "/edit" for "/copy", instead of accessing it google will ask you if you want to generate a copy of the document.<img>
tags.ScriptApp.newTrigger("funcion")
you need the scope script.scriptapp
, but apparently thats not necessary as long as you have declare some other scope.