Hello,
to change template, I'm trying to use ESTK scripts.
I made scripts
// Function to copy the contents of a folder to another folder
function copyFolderContents(sourceFolder, destinationFolder) {
// Get a list of files and subfolders in the source folder
var files = sourceFolder.getFiles("*");
var subfolders = sourceFolder.getFiles("*");
// Copy each file from the source folder to the destination folder
for (var i = 0; i < files.length; i++) {
var file = files[i];
var destinationFile = new File(destinationFolder + "/" + file.name);
file.copyTo(destinationFile);
}
// Recursively copy each subfolder from the source folder to the destination folder
for (var j = 0; j < subfolders.length; j++) {
var subfolder = subfolders[j];
var destinationSubfolder = new Folder(destinationFolder + "/" + subfolder.name);
copyFolderContents(subfolder, destinationSubfolder);
}
but it is not working.
I wish I can get tips for solving this problem.