I use this code to generate a XML file on my Google Drive :
var nomFichierXML = "CazaAzul_CSI_"+AccountingPeriod+"_"+DateDuJour
var blob = Utilities.newBlob(xml, 'application/xml', 'CSI.xml');
var folder = DriveApp.getFolderById("FolderID");
blob.setName(nomFichierXML+".xml");
folder.createFile(blob);
I would like to download this file automatically on my local computer just after the "folder.creatFile(blob)" function.
I managed to creat the URL of this filw with this command :
var fileId = file.getId();
var urlCSI = file.getDownloadUrl()
But after that... I'm stuck.