- Go to https://drive.google.com/ and create a new Google App Script:
- Edit the name of the Project, call it 'Calendar Agenda PDF':
-
Paste in the code from the
Code.gs
file into theCode.gs
file in your project -
Create a new folder called
Calendar Agenda
in https://drive.google.com/ -
Get the ID of this folder, this is the part after https://drive.google.com/drive/folders/ in the URL when you click into it
-
Replace
---YOUR-GOOGLE-DRIVE-FOLDER-ID---
with the ID of your Google Drive folder -
Ensure you have
Drive API
andGoogle Calendar
added under the Services menu. If not, click the+
button and add them:
- Test run the script. Click the save icon , ensure
CalendarToPDF
is in the function list and clickRun
:
-
Make sure it creates the
Calendar.pdf
file in yourCalendar Agenda
folder correctly -
Schedule it to run automatically - click the clock icon to go to
Triggers
and add a new trigger as follows:
- If your calendar isn't updating, try running the
reset
function.