---
title: "Pseudo OnEdit Trigger for Google Document using Google Apps Script"
author: "Martin Hawksey"
date: 2021-12-02T19:08:51+00:00
modified: 2021-12-02T19:10:19+00:00
canonical_url: https://pulse.appsscript.info/p/2021/12/pseudo-onedit-trigger-for-google-document-using-google-apps-script/
markdown_url: https://pulse.appsscript.info/p/2021/12/pseudo-onedit-trigger-for-google-document-using-google-apps-script.md
categories:
  - "Docs"
  - "Forms"
  - "Intermediate"
  - "Sheets"
  - "Solutions"
  - "V8"
tags:
  - "tanaikech.github.io"
featured_image: https://pulse.appsscript.info/files/2021/12/fig1.gif
description: "In the current stage, there is not OnEdit trigger for Google Document. But I sometimes have the case that I want to use OnEdit trigger. So, as the current workaround, I created this sample script. I think that this workaround can be also used for Google Slides, Google Form and also Google Spreadsheet. In the case of Spreadsheet, what the existing OnEdit trigger and the time-driven trigger cannot do can be achieved."
---

# Pseudo OnEdit Trigger for Google Document using Google Apps Script

![Pseudo OnEdit Trigger for Google Document using Google Apps Script](https://pulse.appsscript.info/files/2021/12/fig1.gif)

> [https://tanaikech.github.io/2021/12/01/pseudo-onedit-trigger-for-google-document-using-google-apps-script/](https://tanaikech.github.io/2021/12/01/pseudo-onedit-trigger-for-google-document-using-google-apps-script/)
> In the current stage, there is not OnEdit trigger for Google Document. But I sometimes have the case that I want to use OnEdit trigger. So, as the current workaround, I created this sample script. I think that this workaround can be also used for Google Slides, Google Form and also Google Spreadsheet. In the case of Spreadsheet, what the existing OnEdit trigger and the time-driven trigger cannot do can be achieved.

Source: [Pseudo OnEdit Trigger for Google Document using Google Apps Script**](https://tanaikech.github.io/2021/12/01/pseudo-onedit-trigger-for-google-document-using-google-apps-script/)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2021/12/pseudo-onedit-trigger-for-google-document-using-google-apps-script/](https://pulse.appsscript.info/p/2021/12/pseudo-onedit-trigger-for-google-document-using-google-apps-script/)*
