Stay organized with collections Save and categorize content based on your preferences.
A script project represents a collection of files and resources in Google Apps Script, sometimes referred to simply as "a script". A script project has one or more script files which can either be code files (having a .gs
extension) or HTML files (a .html
extension). You can also include JavaScript and CSS in HTML files.
The script editor always has one and only one project opened at any given time. You can open multiple projects in multiple browser windows or tabs.
Create and delete projectsThis section explains how to create and delete standalone or container-bound Apps Script projects.
Create a standalone projectTo create a standalone project from Apps Script:
script.google.com
.clasp
command line tool
clasp
is a command line tool that allows you create, pull/push, and deploy Apps Script projects from a terminal.
See the Command Line Interface using clasp
guide for more details.
script.google.com
.To take code files out of Apps Script, you can either copy and paste the code from each file into your preferred text editor or use clasp on the command line. To use clasp, refer to download a script project.
Set the time zone for a projectYou can set the time zone for an Apps Script project. Functions performed by the script use this time zone.
If you want a specific function to use a different time zone than the script project’s, explicitly enter the time zone in your function. For example, in the below sample, each function creates a new event in Google Calendar. The first function defaults to the project time zone. The second function specifies the Pacific time zone, so the event is scheduled in Pacific time, regardless of the project’s time zone.
function createEvent(){
// Creates an event in the script project's time zone and logs the ID
var event = CalendarApp.getDefaultCalendar().createEvent('New test event',
new Date('December 20, 2022 17:00:00'),
new Date('December 20, 2022 18:00:00'));
console.log('Event ID: ' + event.getId());
}
function createEventPacific(){
// Creates an event with a specified time zone and logs the event ID.
var event = CalendarApp.getDefaultCalendar().createEvent('New sample event',
new Date('December 20, 2022 17:00:00 PDT'),
new Date('December 20, 2022 18:00:00 PDT'));
console.log('Event ID: ' + event.getId());
}
Fix issues with multiple Google Accounts
If you're logged into multiple Google Accounts at the same time, you might have trouble accessing your add-ons and web apps. Multi-login, or being logged into multiple Google Accounts at once, isn't supported for Apps Script, add-ons, or web apps.
If you open the Apps Script editor while logged in to more than one account, Google prompts you to choose the account you want to proceed with.
If you open a web app or add-on and experience multi-login issues, try one of the following solutions:
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 2025-08-04 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 2025-08-04 UTC."],[[["An Apps Script project is a collection of files and resources, including code (`.gs`) and HTML (`.html`) files, that can be created as standalone entities or bound to Google Workspace documents."],["Projects can be created and deleted through the Apps Script editor, Google Drive, or specific Google Workspace applications like Docs, Sheets, Slides, and Forms."],["Users can manage files within their projects, including creating, deleting, and exporting them, as well as setting the project's time zone."],["Potential issues arising from multiple Google Account logins can be mitigated by selecting the appropriate account or using private browsing modes."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4