Standalone Scripts (original) (raw)

Standalone Scripts

Stay organized with collections Save and categorize content based on your preferences.

A standalone script is any script that is notbound 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 visitscript.google.comand at the top left, click New project.

You can also create standalone scripts from Google Drive. Go to Google Driveand click 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 click Run.

Using a standalone script

Many standalone scripts are utility scripts — for example, tosearch 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 appor set up to run automatically from aninstallable trigger.

Apps Script standalone scripts are suitable for lightweight add-on development for yourself, your team, or your organization. For larger projects, consider building a Google Workspace add-on on a different runtimeenvironment.