r/GoogleAppsScript • • Oct 16 '20

Question Jobs/companies that use Apps script?

12 Upvotes

I’m considering investing some time to learning GAS, being an Excel guy looking to expand my horizons. When I search Glassdoor for this skill, the results are pretty thin. Im wondering if this is utilized in Corporate atmospheres or is it more for small business/web development tasks. Who’s actually using GAS?


r/GoogleAppsScript • • Jul 29 '20

Question Is it just me or has the V8 debugger been all but unusable for the past few days?

12 Upvotes

r/GoogleAppsScript • • Jun 22 '20

Guide out of office automation

12 Upvotes

We have a lot of part time workers and the management wants them to set their out of office notification on non working days.

so i made a script wich searches for an calendar event with the keyword {{ooo}} and sets the ooo notification according to the events start- and endtime. The events description will be used as the email body and it even features placeholder tags

have a look here: https://github.com/raffaeletani/gs-gmail-out-of-office


r/GoogleAppsScript • • Aug 25 '19

Free Google Translate API for Apps Script

12 Upvotes

I ported a Node.JS Google translate api to Apps script so you can use Google translate api for free Please check my work at https://github.com/siquylee/google-translate-api


r/GoogleAppsScript • • May 27 '19

Wrote a Storage Service utility for storing large values in GAS Properties

12 Upvotes

Hi all. I've been working on a larger-scale AppsScript add-on project, and thought that some of the things that I've been writing might benefit others.

The first class that I've had a chance to clean up and get public-ready is a StorageService that I wrote. This class (written in TypeScript, but the repo contains the compiled .gs file as well) helps to handle storing and retrieving of values that may or may not be larger than the standard 9KB limit for a single property value. It splits up and stores larger values across other keys at store-time, and then retrieves them and combines them at retrieval.

The repo can be found here: https://github.com/johndturn/google-apps-script-storageservice

Note: At this point, it only stores values in the UserProperties (for a specific user using a specific script or add-on), though I have plans to make that a bit more modular to use other properties stores, as my project will need it shortly.

If you see something that looks off, or would like to contribute, feel free to open an issue, pull request, or DM me.


r/GoogleAppsScript • • Jun 01 '26

Guide Check that your add-ons aren't failing with Rhino errors

11 Upvotes

I maintain the Crop Sheet add-on and got alerted by a user that it wasn’t loading correctly (only the “Help” option was in the add-on menu). I looked into it, and the script was failing with the following error:

Execution failed. The Rhino runtime is deprecated and no longer supported.

It looks like Google is finally ending support for the older Rhino runtime, and logging showed these errors started at 1AM ET this morning. Although I had updated the code to use the V8 runtime, I apparently hadn’t republished it as an add-on. Creating a new deployment, updating the marketplace listing, and republishing it appears to have solved the problem.

If you maintain some add-ons or scripts it might be a good idea to check that they are all still working.


r/GoogleAppsScript • • May 23 '26

Guide Google Apps Script + TypeScript Template

11 Upvotes

I made a starter template for building Google Apps Script projects with TypeScript and a modern workflow.

Features:

  • TypeScript support

  • Bundling using Tsdown

  • Fast development workflow

  • Modular code structure

Functions exported from src/index.ts are automatically exposed and available to call directly from Google Apps Script.

Repository: https://github.com/kumardeo/google-apps-script-template

Would love feedback and suggestions from other GAS developers.


r/GoogleAppsScript • • May 13 '26

Resolved Built a free Google Sheets CRM for small businesses & agencies.

Thumbnail docs.google.com
11 Upvotes

r/GoogleAppsScript • • Dec 06 '25

Resolved Fix for “Working…” spinner bug in Google Sheets when using Apps Script popups

11 Upvotes

Hey everyone!

If you’ve noticed that after running a Google Apps Script, your Google Sheet shows “Working…” at the bottom forever, even though the script finished, you’re not alone.

Why it happens

Scripts that use popups like these are causing the bug:

Browser.msgBox("Hello");

SpreadsheetApp.getUi().alert("Done!");

SpreadsheetApp.getUi().prompt("Enter value");

Google recently changed how Sheets handles these popups, so they can freeze the UI after the script finishes.

This didn’t happen before, but now it can happen suddenly.

Simple Fix

Instead of using the old popups, use a safe HTML popup with HTMLService. It won’t trigger the spinner bug.

Step 1 — Add this function to your script:

function showMessage(message) {

var html = HtmlService

.createHtmlOutput(

'<div style="font-family:Arial; font-size:14px; padding:8px;">'

+ message.replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/\n/g,'<br>') +

'</div><div style="text-align:right; padding:8px;"><button onclick="google.script.host.close()">OK</button></div>'

)

.setWidth(420)

.setHeight(160);

SpreadsheetApp.getUi().showModalDialog(html, 'Message');

}

Step 2 — Replace old popups in your script

Old New

Browser.msgBox("Done!") showMessage("Done!")

SpreadsheetApp.getUi().alert("Hello!") showMessage("Hello!")

SpreadsheetApp.getUi().prompt("Enter value") showMessage("Enter value")

Step 3 — Test it

function testPopup() {

var sheet = SpreadsheetApp.getActiveSheet();

sheet.getRange("A1").setValue("Script ran!");

showMessage("The script finished successfully — no spinner!");

}

Run testPopup() — the popup will appear, your script will finish, and the “Working…” spinner will NOT get stuck.

Summary:

The spinner bug is caused by Google changing how old popup functions work.

Using HTMLService popups (showMessage()) fixes it for all scripts.

Safe, simple, and works in new or existing sheets.


r/GoogleAppsScript • • Aug 19 '25

Guide Open Source A.T.L.A.S — one-click Google Shared Drive templates (Apps Script). New scripts every week.

11 Upvotes

Hey folks! I just open-sourced A.T.L.A.S (Automated Template for Linked Accessed SharedDrives) — a lightweight Apps Script web app that helps companies spin up standardized Google Shared Drives for different departments in one click.

Repo: https://github.com/morganb2412/Google-apps-script-snippets/tree/main/Drive/A.T.L.A.S
Demo video: attached / in comments

What it does (v1)

  • Creates a new Shared Drive with your chosen department prefix (e.g., PMO--, Finance--, Acq--).

  • Generates a consistent folder structure from templates (PMO & Finance included; Acq is a simple starter).

  • Applies role-based access in one pass (Owners / Editors / Viewers / Commenters).

  • Sends an email summary with the drive + folder links when finished.

  • Clean, simple UI with dark/light mode.

Why it’s useful

  • Standardization + speed for PMO/Finance/ops teams.

  • Less manual setup; fewer naming/permissions mistakes.

  • Easy to extend with your own templates.

Quick start

  1. Copy the project’s Code.gs and index.html into a new Apps Script project.

  2. Services → Add service (+) → enable Drive API (v3).

  3. Deploy → Web app → Execute as: Me and Who has access: Anyone in your domain.

  4. Open the web app, pick a template, add owners, hit Create.

  5. (Optional later) Watch the repo for updates if you want more templates & features.

Who it’s for

  • Google Workspace admins, PMO leads, finance ops, and anyone who repeatedly creates “the same” drive structure.

Roadmap / updates

  • More department templates.

  • Bulk creations (CSV).

  • Guardrails & audit notes.

  • Quality-of-life tweaks based on feedback.

Weekly scripts

Alongside A.T.L.A.S., I’m running Moe's Automation Weekly — I’ll publish a new Apps Script in the repo every week to help automate Google Workspace tasks. It’s an open repository for the community to benefit from, fork, and remix.

If you try it, I’d love feedback:

  • What templates do you want next?

  • What’s the biggest friction you hit when creating Shared Drives today?

PRs, issues, and stars welcome 🙌
Repo: https://github.com/morganb2412/Google-apps-script-snippets

#AppsScript #GoogleWorkspace #Automation #SysAdmin #PMO #FinanceOps


r/GoogleAppsScript • • Aug 17 '25

Question What do you all do?

11 Upvotes

Hello everyone. I have been using GAS for quite some time. just making little web apps to make things quicker at work. I can spend hours just making and refining projects I would love to some how migrate to making it a job. It's honestly so much fun.

I am just curious. what kind of scripts or add ons or web apps are you all making. Do you spend time making them look good or are they for functionality? now that mines for work are finished I am interested to know what other things I can be doing?


r/GoogleAppsScript • • May 06 '25

Guide Symptom Tracker – Built This for Myself, Sharing It For Free

11 Upvotes

I built this simple symptom tracker using google apps script and google sheets because I needed a quick way to log how I was feeling day to day. It helped me stay consistent, and now I’m sharing it for free in case it helps someone else too.

Why It’s Worth a Look:

✅ Quick to Use: Just open the tool, log a symptom, and move on with your day.
🧠 Keeps You in Tune: Logging how you feel can make it easier to notice patterns over time.
🎁 Totally Free: Just click the URL, copy and use it.

What It Does:

📅 Log Entries Easily: Input symptoms, severity, date, and notes.
📈 Stay Organized: Each entry is automatically added to a running log.
🧰 No Setup Needed: Just open the sidebar and start tracking.

Tell me what you think!


r/GoogleAppsScript • • Apr 30 '25

Guide Reddit API with OAuth2 using Google Apps Script

Thumbnail
blog.greenflux.us
11 Upvotes

r/GoogleAppsScript • • Dec 03 '24

Unresolved I'm on the Google Workspace Developer Relations team, AMA!

Thumbnail
reddit.com
11 Upvotes

r/GoogleAppsScript • • Nov 13 '24

Guide Create a PDF from the active document tab without the title page.

11 Upvotes

A few moments ago, I posted the following as an answer in Stack Overflow ( I made a few slight changes here)

The script below creates a PDF from the active document dab without the page with the document tab title. Please note the use of the parameter tab=${tab.getId()}.

function createPDFActiveTab() {
    const doc = DocumentApp.getActiveDocument();
    const tab = doc.getActiveTab();
    const url = `https://docs.google.com/document/d/${doc.getId()}/export?format=pdf&tab=${tab.getId()}`;
    const params = {
        headers: {
            "Authorization": 'Bearer ' + ScriptApp.getOAuthToken()
        }
    };
    const response = UrlFetchApp.fetch(url, params);
    const blob = response.getBlob();
    DriveApp.createFile(blob);
}

Please remember that the document structure has changed due to Document Tabs and the methods used to handle them. The details are in the official guide, Work with Tabs.

Class DocumentApp doesn't include a method to retrieve a blob from a document tab because the above script uses UrlFetchApp. It's worth mentioning that there have been reports that this method might fail some documents for no apparent reason. Something to try is to make a copy of the document and run the script on the copy.


r/GoogleAppsScript • • Sep 06 '24

Guide Talk To Your SpreadSheet: Apps Script + Cohere AI

Thumbnail
blog.greenflux.us
11 Upvotes

r/GoogleAppsScript • • Dec 22 '23

Question Coolest automation on Google Sheets

11 Upvotes

What's the coolest automation you have done on google sheets?


r/GoogleAppsScript • • Oct 20 '23

Guide Library for manipulating data in Google Sheets

11 Upvotes

Hello all, I created a library for manipulating data in Google Sheets both before and after the data makes it to the page. I'd love it if anyone checked it out, and I'd love it even more if anyone found a use for it. I use it all the time at my job where we do a lot of reporting in Sheets.

Check it out on GitHub here!


r/GoogleAppsScript • • Nov 04 '22

Guide I built a system to stay in touch with hundreds of people using Apps Script

11 Upvotes

Hi,

I'm a novice and still learn how to write Apps Script. To practice, I implemented Derek Sivers' system that he's been using to stay in touch with hundreds of people. I wrote a blog post to record the process. Welcome to try it and please let me know how it works :)


r/GoogleAppsScript • • Oct 04 '22

Resolved Trying to create PDF from sheet, but getting a vague error

11 Upvotes

This is my sheet that tracks client illnesses. I am trying to use this script to create a PDF of the "Tracker" tab, but I keep getting the error:

Exception: Service error: Spreadsheets

createPDF @ createPDF.gs:26

I have tried to google the problem, but nothing seems to really fit my situation. Any thoughts on what could be wrong? Or is there a better script I can use instead?

Any help is appreciated!

EDIT: I'm going to leave this here in case anyone else ever has a similar problem, but I figured it out!

I had the company logo inserted as an image - the formula didn't like that. I deleted the logo and it works great. Go figure.

If anyone has ideas that will allow me to keep the logo, I'd love to hear them! :-)

EDIT 2: I just had to insert the logo over the cell instead of in the cell. Lol.


r/GoogleAppsScript • • Aug 07 '22

Guide Used Google Apps Script to make a YT video whose thumbnail changes every 10 minutes!

11 Upvotes

The video - https://www.youtube.com/watch?v=uGR7A5JbSFg

It will always be the same video, just changing the thumbnail programmatically.

I've repeated this in the description and in a comment below the video, but the basic idea was I took Unsplash's API, which returned back a random image, and utilized a Google Apps Script on a 10 min trigger to call the YouTube Data API to set the thumbnail of the specific video to said image. Credit where credit is due, I looked to this article - https://hawksey.info/blog/2017/09/identity-crisis-using-the-youtube-api-with-google-apps-script-and-scheduling-live-broadcasts-from-google-sheets/ because I did run into a snag in the beginning where I realized after testing that the YouTube API would only affect my actual Google Account's YouTube channel, rather than the YouTube account associated with my Google account, if that makes sense, so I had to utilize this version of the YT API which essentially gave my apps script access to my YouTube account from my Google account where the script is running (does that make sense?)

And of course, Tom Scott's awesome video https://www.youtube.com/watch?v=BxV14h0kFs0 was also pretty inspiring in pushing this idea of self-referential videos.

I really do think there's a potential here for programmatically updating self-referential videos like this. Imagine a YouTube video that could change thumbnails depending on a project's status, or a live stream thumbnail that could update the thumbnail with the current winner in a chat vote.... my point is, I really think there is some potential here with this concept. But what do you guys think?


r/GoogleAppsScript • • Jun 02 '22

Question How to search for Google Apps Script Libraries

11 Upvotes

Is there a good resource for finding Google Apps Script Libraries/code snippets/etc?

For example I want to create a script that gets a color from a cell. I want the user to be able to do one of the following:

  • enter a hex value (with or without #)

  • enter rgb values

  • change the background color

  • enter a color name (blue, red, yellow, etc)

  • Possibly have a color picker popup appear when the user clicks the cell

Basically I want it to be robust so that the user can get me the color in whatever way they prefer. I *could* code this, but if such a thing exists I would rather use that.

This particular situation has come up numerous times for me with different situations where if someone has done this thing before and went through the troubleshooting to make it robust, I would rather use that code that invent my own. But when I search for such things I get lost in the weeds of results that show me a tip that is geared towards building the code instead of finding and adapting it.

Feel free to point me to code that does the above example, but I'm really looking for tips/resources to help find libraries/code snippets in general.


r/GoogleAppsScript • • May 24 '22

Guide Google Sheets powered uptime monitor and alerting

Thumbnail
stonian.tk
11 Upvotes

r/GoogleAppsScript • • Dec 23 '21

Question I'm learning to code and I'd love for my first project to be a google sheets extension to use in my day-to-day work with spreadsheets...Any good courses for me to take to progress?

11 Upvotes