Standalone Scripts
Stay organized with collections
Save and categorize content based on your preferences.
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, click addNew project.
You can also create standalone scripts from Google Drive. Go to Google Drive
and 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, 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 trigger.
Finally, it is now possible for add-ons to be
published from standalone scripts.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-29 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-08-29 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-29 UTC."]]