Disco Globeulon
Disco Globeulon

Reputation: 489

Scripting Google documents (not spreadsheets) with Google Apps Script

So I know that it's possible to create scripts for use on spreadsheets using Google Apps Script, but is there support for using created scripts on documents? I know that the API provides services for creating and editing documents, though they bear the experimental tag, but I can't seem to find a way to create and install a script on a document.

And when I say document services, I refer to the following link: https://developers.google.com/apps-script/service_document

Upvotes: 0

Views: 679

Answers (2)

sjsyrek
sjsyrek

Reputation: 193

Update: you can do this now. Just in case someone stumbles on this answer. To clarify the above answer, too: you can create scripts that are attached to documents or standalone scripts. Attached scripts can be published as add-ons, but are always associated with a document (doc, sheet, or form). Standalone scripts can be published as web apps.

Upvotes: 2

Serge insas
Serge insas

Reputation: 46794

You can't find it because you cannot do it. Scripts can indeed manipulate documents using Document services (as you referred to) but the script itself should be linked to a spreadsheet or a Google site. Linked is probably not the best word since the apps script can be published to work as a standalone web application - in this case the link to the spreadsheet is used only during the development of your application. I hope this makes things clear enough.

Upvotes: 1

Related Questions