Merci pour ce renseignement,
J'ai fait la modification, mais je ne voie pas la mise a jour automatique, comme je souhaite.
serait vous me dire pourquoi?
// UPDATE ALL LINKED SLIDES IN ALL PRESENTATIONS IN A DRIVE FOLDER
// TODO LIST
// Change the MYFOLDERID to reflect the folder to be scanned on Drive
// Create Head trigger based on time
// TO BE NOTICED
// This script does not add new slides if they are created in the master presentation
// This script does not remove slides if erased from the master presentation
// WHAT IT DOES
// This script does hide a slide is hidden in the master presentation
// This script does update slides content if updated in the master presentation
// This script does update speaker notes if updated in the master presentation
function findFiles() {
// Use MimeType enum to log the name of every Google_slides in the Drive folder called by folder ID.
// https://docs.google.com/presentation/d/1DNtXs7WdTE28otyExlzo_NPTh2Zt27BdHK26wn7Rym0/edit#slide=id.g24943f8d9ad_0_0
const docs = DriveApp.getFolderById('1DNtXs7WdTE28otyExlzo_NPTh2Zt27BdHK26wn7Rym0').getFilesByType(MimeType.GOOGLE_SLIDES);
while (docs.hasNext())
{
const doc = docs.next();
Browser.msgBox('Nouveau joueur ajoute')
//debug
//Logger.log(doc.getId())
//All files in the folder are logged
//Use updateAllSlides function for all presentation Ids found with the function
updateAllSlides(doc.getId());
}
}
function updateAllSlides(presentationId) {
//Find all slides in the presentations listed in the findFiles function
const currentPresentation = SlidesApp.openById(presentationId);
const slides = currentPresentation.getSlides();
for (let i = 0; i < slides.length; i++) {
const slide = slides[i];
// Update slides if slide linked, if slide not linked, no update
slide.refreshSlide();
refresh(PageElement)
Browser.msgBox('Nouveau joueur ajoute')
}
}
// Script created by Pierre BENNETON
// With the help of Antoine MARTIN
// Two minds are always better than one
Classement Général POWERPOINT - Google Drive