Google Web app for creating a calendar of individual events that cycles the words "J Day," "I Day," "A Day," "Y Day," "O Day," and "U Day," except on weekends and holidays. Modify as needed, and back up your calendars before you run the app. Without an app script, one would need to create these events manually.
Suggestion: Run this script in a summer before an upcoming school year; this is because the script will create events starting in the current year.
Form for creating "JIA YOU" calendar of events. (Username is hidden.)
"JIA YOU" calendar of events was created.
Access to Google Apps Script
- Go to Google Apps Script, and create a new project.
- Copy and paste the script into the editor, and save the file.
- Run the script to acquire authorization.
- Create an HTML file, and name it "Index."
- Copy and paste the markup text into the editor, and save the file.
- Deploy the project as a Web app, and open the assigned URL.
- Check the username to ensure that you opened the URL in the correct account.
- Modify the calendar name and time zone.
- Add any exceptions to the U.S. holiday schedule, any half-days, and any extra holidays. (Exceptions tell the app script to create events on these holidays; half-days tell the app script to skip this day; and extra holidays tell the app script not to create events on these non-holidays.)
- Modify the start and end months. (If the start month is greater than the end month, then the calendar will roll over to the new year.)
- Optionally perform a dry run to test the Web app before running it in production. Consult logs for output.
- Press submit. (Requires another authorization. Note also that creating calendars is subject to a use limit.)
- If you deploy the Web app such that it executes as
User accessing the web app
whereAnyone with Google account
can access it, then you can share the URL for them to create a calendar in their own account. (You may wish to hide the dry run option.) - Trim the calendar (e.g., delete letter days after Jun 12, if a school calendar ends on Jun 12)
- Consult the Web app for adding events.
- You can extend the app script to create a calendar cycling any letters or words and in any language. Feel free to fork, too!
- You can also export the calendar directly from Google Calendar and can import it into another calendar on your smartphone. Alternative: Check out Jonathan Hsieh's AileenBot, and subscribe to community events. ('Whatever way makes it easier for you to keep track of today's letter...)
Made with ♥ in Visual Studio Code
A special thank you to Chi (David) Yu and James Armstrong. Chi contributed the idea of developing the app using Google Apps Script, and James contributed recurring events and regular expressions.