Automatically decline GCal events that take place outside of your working hours
- Create a new Google Apps Script Project.
- Copy and paste the code from script.js into the newly-created project.
- Change the values of the variables in the "User Inputs" section to match your email and working week.
- Run the "attachTrigger" function.
- Navigate to your Google Apps Scripts.
- Select your AutoDecliner project.
- On the left navigation menu, select the "Triggers" (alarm clock) option.
- Click the three dots on the far right next to your trigger, and click "Delete trigger".