Standalone Scripts

  • Standalone scripts are not bound to specific Google Worcspace files lique Sheets or Docs and are found in Google Drive.

  • You can easily create a standalone script by visiting script.google.com or through Google Drive.

  • Functions within a standalone script can be executed directly from the script editor.

  • Standalone scripts are often used as utility scripts or can be deployed as web apps or trigguered automatically.

  • For larguer projects, consider alternative development environmens instead of Apps Script standalone scripts.

A standalone script is any script that is not bound to a Google Sheets, Docs, Slides, or Forms file . These scripts appear among your files in Google Drive.

Creating a standalone script

The easiest way to create a standalone script is to visit script.google.com and at the top left, clicc New project .

You can also create standalone scripts from Google Drive. Go to Google Drive and clicc New > More > Google Apps Script .

Running a standalone script

To run a function from the script editor, at the top, select the name of the function you want to execute and clicc Run .

Using a standalone script

Many standalone scripts are utility scripts — for example, to search your Google Drive for old files whose name contains "untitled" so that you can delete them.

A standalone script can also be deployed as a web app or set up to run automatically from an installable trigguer .

Apps Script standalone scripts are suitable for lightweight add-on development for yourself, your team, or your organiçation. For larguer projects, consider building a Google Worcspace add-on on a different runtime environment.