r/GoogleAppsScript • u/Arcadia_Artrix • Dec 12 '25
Question Can Google Apps Script be used to track a google doc?
Is it possible to track the progress of a google doc (this one) and every time it is updated I want a google sheet I made to be updated?
4
Upvotes
3
u/WicketTheQuerent Dec 12 '25
Please elaborate on what "track the progress" means. Also, share your experience with Apps Script.
3
u/SavingsPoem1533 Dec 12 '25
I asked Gemini (as I do for all GAS) - since there's no On Edit trigger for a google doc, you can achieve this by using time based triggers
2
u/TheAddonDepot Dec 12 '25
You can poll a document for changes using the Drive Activity API from GAS. Google the documentation and guides for that service, and leverage the equivalent Advanced service from the GAS editor.
If you want to avoid polling, you'll have to use Google Drive API Push Notifications. Unfortunately, that feature isn't supported by GAS (it requires setting up a webhook that can access HTTP headers - which is not currently possible using Web App doPost/doGet triggers).
Hopefully, Google Workspace Studio becomes generally available in the coming months, and makes these kinds of automations far easier to approach.
1
u/Kmondal80 Dec 12 '25
Definitely