Unit 3 · Module 2

Google Apps Script

What Apps Script is, the naming conventions across every Google product, and how to read a script you find in the wild

Where this module sits

Module 1 introduced the host idea, host globals, and the four-part anatomy of any script. This module makes all of that concrete in one specific host: Google’s. The goal is to read an Apps Script — Sheets, Docs, Gmail, whichever — and know what every piece of it is doing.

The five pages

  1. What Apps Script Is. The runtime, where the code lives, and why scripts can read your Gmail without juggling OAuth tokens.
  2. The Apps Script Naming Convention. Cheat sheet: the XxxApp global for every Google product, the getActive___() pattern, and the capitalization rules.
  3. Walking The Hierarchy. Why Apps Script code chains so many .something().something() calls — and what each step is pointing at.
  4. Triggers. Simple triggers, installable triggers, and the editor UI where they get configured.
  5. Reading An Apps Script You Find In The Wild. A real-looking script walked line-by-line using the layers, parts, and hierarchy from everything above.

Module 3 picks up Airtable scripts after this. Same shape, different host.