I am working on a script to save a template sheets file in a different folder within the same directory as the template. I have searched up and down trying to make this work and I just dont understand what I am missing. Here are a few of the things I have tried:
function myFunction() {
// Log the name of every file in the user's Drive.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
//var ss2 ="Copy of " + ss.getName()
//var folder = "Awaiting Professor Approval"
//ss2.makeCopy("new name", folder);
//file.moveTo("Awaiting Professor Approval");
}