

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Explore google apps script, a javascript-based language that enhances google docs and sheets functionality. Create custom dialogs, scripts, and add-ons for docs and sheets using this powerful tool. Get started with javascript basics and follow the tasks to create your projects.
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Google Apps Script This is an add-on to the Information Communication Technology (ICT) course. It aims to broaden learners’ proficiency in using productivity apps by introducing basic programming. These exercises are optional and not graded.
Tip: Turn on Document Outline (found in Tools). Click on a section to jump to it.
Section 1: What is Google Apps Script?
Google Apps Script is a scripting language based on JavaScript that lets you do new and cool things with Google Apps like Docs, Sheets, and Forms. There's nothing to install — we give you a code editor right in your browser, and your scripts run on Google's servers.
Google Apps Script allows you to programmatically create and modify Google Docs, as well as customize the user interface with new menus, dialog boxes, and sidebars.
Google Apps Script lets you do new and cool things with Google Sheets. You can use Apps Script to add custom menus, dialogs, and sidebars to Google Sheets. It also lets you write custom functions for Sheets, as well as integrate Sheets with other Google services like Calendar, Drive, and Gmail.
Most scripts designed for Google Sheets manipulate arrays to interact with the cells, rows, and columns in a spreadsheet.
TASK:
Section 2: What is Javascript?
Google Apps Script is based upon the highly popular JavaScript programming language, which is a complicated beast with a very precise and elaborate set of syntax. To learn Google Apps Script, you’re going to need (at the very least) a basic understanding of JavaScript.
JavaScript is a programming language used to make web pages interactive. It runs on your visitor's computer and doesn't require constant downloads from your website. JavaScript is often used to create polls and quizzes.
JavaScript is an interpreted language, so no special program is required to create usable code. Any plain text editor such as Notepad (one of the Accessories that comes in Windows) is quite satisfactory for being able to write JavaScript. That said, an editor that colorizes the code to make it easier to see what is what makes it easier to find your mistakes.
TASK:
Section 3: Google Apps Script for Docs
Google Apps Script allows you to programmatically create and modify Google Docs, as well as customize the user interface with new menus, dialog boxes, and sidebars.
Apps Script can interact with Google Docs in two broad ways: any script can create or modify a document if the script's user has appropriate permissions for the document, and a script can also be bound to a document, which gives the script special abilities to alter the user interface or respond when the document is opened. To create a container-bound script, select Tools > Script editor from within Google Docs.
Read more here.
Section 4: Google Apps Script for Sheets
Google Apps Script lets you do new and cool things with Google Sheets. You can use Apps Script to add custom menus, dialogs, and sidebars to Google Sheets. It also lets you write custom functions for Sheets, as well as integrate Sheets with other Google services like Calendar, Drive, and Gmail.