I would like to run this script (embed drive list in a site) that I have used but only set the trigger to run it during office hours Monday - Friday.
I would like
I think it would be quite easier to insert a small routine at the beginning of your main function that checks the time of the day and simply 'returns' when out of office hours. This way you can let your trigger set to 5 minutes all the time. This 'hour check' will be very short in terms of processing time.
here is a test function to show how it works :
function officeHours(){
var nowH=new Date().getHours();
var nowD=new Date().getDay();
Logger.log('day : '+nowD+' Hours : '+nowH)
if(nowH>17||nowH<8||nowD==6||nowD==0){return}
Browser.msgBox('time to work !');//normally your real function should begin here...
}