I have a "template" Google spreadsheet that I copy for each user when requested. The "template" spreadsheet has a Google Script associated with it but the link to this script appears to be lost when I do the copy.
The actual error I have is that there is a drawing in one of the sheets that is linked to a script and this link is lost when I copy the spreadsheet.
How do I copy the spreadsheet and copy the script so that they are linked in the new spreadsheet?
var masterSS = DriveApp.getFileById('999999999999999999999999999999');
var nowDT = new Date();
var newSS = 'ACME ' + nowDT;
masterSS.makeCopy(newSS);