This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function selectAll() { | |
var cals = CalendarApp.getAllCalendars(); //Get all of the calendars | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
ss.toast("This process takes about 2 minutes. Another notification will indicate when complete", "Process Started!", 20); | |
for ( var i = 0; i <= cals.length-1; i++ ) { //Create a loop and select each one individually | |
var tempName = cals[i]; | |
if (tempName != "Tasks" && tempName != "Choose From Dropdown" ) // FILTER UNNEEDED CALENDARS | |
{ | |
tempName.setSelected(true); | |
} |