G
G
Graun2020-02-08 14:33:46
Google Apps Script
Graun, 2020-02-08 14:33:46

How can a script run other scripts?

I need to combine three scripts into one. I would like to make it so that I create three scripts, and in the fourth, write links to them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2020-02-08
@dimonchik2013

Well, looping Google will not work

A
Alexander Ivanov, 2020-02-11
@oshliaer

You need an entry point. And when we run scripts from the editor, everything seems obvious. But it's not. The following entry points are valid:

  • endpoint (webapp)
  • Menu
  • Script editor
  • Trigger

The situation when all the code is in one project is not considered.
Accordingly, now you need to choose which path to take. Obviously, the call from the menu and the script editor disappears. It remains either to publish a web application for each script and call them from one place, or to set up a trigger for each project, which will be initialized when certain conditions converge.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question