I am simply trying to duplicate an open sheets file. I tried so many variation without success. The below is an example. Would value any assistance. Thank You.
function copyDocs() {
var file = DriveApp.getFilesByName('My Income Statement');
file.makeCopy();
}