# Google Apps Script developer: Sheets, Gmail and Drive automation.

> Google Apps Script is the JavaScript runtime built into Google Workspace, and it is often the cheapest way to automate work that already lives in Sheets, Gmail, Drive and Calendar. SBD writes, fixes and documents Apps Script projects in your own Google account, keeps them inside Google's quotas, and tells you when a job has outgrown a script.

- Canonical: https://smallbaydigital.com/integrations/tools/google-apps-script/
- Publisher: SmallBay Digital

## What Google Apps Script does well

Apps Script runs on Google's servers and can read and write almost anything in Workspace without an extra subscription. It suits work where the data is already in Google and the logic is too fiddly or too frequent for a visual workflow tool. The jobs we are asked for most often fall into five groups:

- Sheets automation: cleaning imported rows, merging per-person tabs into one dashboard, archiving old records and rebuilding summary tabs on a schedule.
- Gmail: sending templated emails from a sheet, labelling and filing incoming mail, and pulling order or invoice details out of messages into rows.
- Drive and Docs: generating proposals, certificates or contracts from a template, saving them as PDFs and filing them in the right client folder.
- Calendar: creating events from bookings in a sheet, sending reminders, and keeping a shared team calendar in step with a schedule tab.
- Custom functions and web apps: a formula such as =VAT_RATE(country) that your team uses like any built-in one, or a small form or endpoint published from the script that other tools can call.

## How Apps Script runs: triggers, menus and web apps

A script runs when something starts it. Simple triggers such as onEdit and onOpen fire when someone edits or opens a file, but they run with limited permissions and cannot send email or touch other files. Installable triggers run as the person who created them, with that person's access, and can fire on a timer, on a form submission or on a calendar change. Most of our production work uses time-driven and form-submit installable triggers, with a custom menu in the sheet so staff can rerun a step by hand when they need to.

A script can also be deployed as a web app with its own URL. We use this for small internal forms and for receiving webhooks from tools such as [Make](https://smallbaydigital.com/integrations/tools/make/), so a scenario can hand heavy row processing to the script and pay for one operation instead of hundreds. That was the pattern in [a project management system for a five-person photo studio](https://smallbaydigital.com/case-studies/photo-studio-project-management/), where Apps Script and Cloudflare Workers took the heavier processing to keep Make operation counts and cost down.

## Google Apps Script quotas and limits that shape a build

Apps Script is free to run, but Google caps how much each user can do. These figures are from Google's quotas page, checked on 16 November 2026. Google says quotas can change without notice and reset 24 hours after the first request, so we design with headroom and check the page again before each build.

- Script runtime is 6 minutes per execution on both consumer and Workspace accounts, and a custom function gets 30 seconds.
- Total trigger runtime is 90 minutes a day on a gmail.com account and 6 hours a day on Google Workspace.
- Each user can have 20 triggers per script, with 30 simultaneous executions per user and 1,000 per script.
- Email recipients are capped at 100 a day on a consumer account and 1,500 a day on Workspace.
- URL Fetch calls are capped at 20,000 a day on consumer accounts and 100,000 on Workspace, with 50 MB per call.
- Calendar events created are capped at 5,000 a day (consumer) and 10,000 (Workspace), and documents created at 250 and 1,500.

## Apps Script compared with Zapier, Make and n8n

Choose Apps Script when the work starts and ends in Google, runs often, and involves many rows. A loop over 5,000 rows costs nothing in a script, while the same job in [Zapier](https://smallbaydigital.com/integrations/tools/zapier/) or Make is billed per task or per operation. It also suits custom spreadsheet functions and documents generated from templates, which workflow tools handle awkwardly.

Choose [Zapier](https://smallbaydigital.com/integrations/tools/zapier/), [Make](https://smallbaydigital.com/integrations/tools/make/) or [n8n](https://smallbaydigital.com/integrations/tools/n8n/) when the process crosses several systems outside Google, when non-developers need to read and change the logic, or when you want run history, retries and alerts without writing them yourself. Apps Script logs executions, but error handling, retries and alerting are code we have to add. Our [guide to choosing between n8n, Make and Zapier](https://smallbaydigital.com/guides/n8n-vs-make-vs-zapier/) covers those three in detail.

Many of our builds use both. A workflow tool owns the cross-system steps and the alerting, and a script does the bulk work inside Sheets or Drive.

## Why Apps Script projects break, and how we prevent it

Most broken scripts we are asked to look at fail in one of four ways:

- Quota exceeded. A script that emailed 80 people a day on a consumer account stops when the list grows past 100. We move it to a Workspace account, batch the work, or send through a mail service with its own limits.
- Execution time limit. A loop that reads and writes one cell at a time hits the 6-minute cap as the sheet grows. We read and write in whole ranges, and split long jobs into batches that save their place and continue on the next trigger.
- Trigger owner or authorisation lost. Installable triggers run as the person who created them, so they stop when that person leaves, loses access or when the script needs new permissions and nobody re-authorises it. We install triggers under a named owner who will stay, record who that is, and add a check that alerts someone when a scheduled run has not happened.
- Silent errors. By default a failed run produces a log entry and an email to the trigger owner, which is easy to miss. We wrap each job so failures go to a channel your team watches, with the row or file that caused them.

## How SBD builds Apps Script in your Google account

We work inside your Google Workspace, in a shared drive or in files owned by an account your company controls, so the scripts stay with you if we stop working together. Where a project is larger than a single file, we keep the code in version control with clasp, Google's command-line tool for Apps Script, and give you the repository. Each script gets a short runbook covering what triggers it, what it touches, which quota it is closest to and who is alerted when it fails.

When a sheet starts acting as a database with many editors and fast-growing rows, a script is no longer the right fix. We will say so and plan a move to [Supabase](https://smallbaydigital.com/integrations/tools/supabase/) or [Airtable](https://smallbaydigital.com/integrations/tools/airtable/), keeping [Google Sheets](https://smallbaydigital.com/integrations/tools/google-sheets/) for the views people like.

## What an Apps Script project with SBD costs

Every engagement starts with an [Automation Audit](https://smallbaydigital.com/services/audit/) at $500, credited in full to your build. Workflow automation builds start at $1,000 and internal tools at $3,000, as a fixed price agreed before work begins. Every build includes sixty days of hypercare, and care plans start at $50 a month for monitoring and small changes. Apps Script itself has no licence fee beyond the Google account you already pay for. If an existing script has stopped working, [fixing a broken automation](https://smallbaydigital.com/services/fix-broken-automation/) covers that work. Full details are on the [pricing page](https://smallbaydigital.com/pricing/).

## Related

- [Google Sheets integrations](https://smallbaydigital.com/integrations/tools/google-sheets/)
- [Gmail integrations](https://smallbaydigital.com/integrations/tools/gmail/)
- [Google Drive integrations](https://smallbaydigital.com/integrations/tools/google-drive/)
- [AppSheet and Workspace Studio](https://smallbaydigital.com/integrations/tools/appsheet/)
- [Automation for Google Workspace teams](https://smallbaydigital.com/for/google-workspace-teams/)
- [n8n vs Make vs Zapier: how to choose](https://smallbaydigital.com/guides/n8n-vs-make-vs-zapier/)
- [Pricing](https://smallbaydigital.com/pricing/)

## Sources

- Google for Developers: Apps Script: Quotas for Google Services (runtime, triggers, email, URL Fetch), checked 16 November 2026 <https://developers.google.com/apps-script/guides/services/quotas>
- Google for Developers: Apps Script: Simple triggers <https://developers.google.com/apps-script/guides/triggers>
- Google for Developers: Apps Script: Installable triggers <https://developers.google.com/apps-script/guides/triggers/installable>
- Google for Developers: Apps Script: Web apps <https://developers.google.com/apps-script/guides/web>
- Google for Developers: Apps Script: Use clasp <https://developers.google.com/apps-script/guides/clasp>
