Book Image

Learning Google Apps Script

By : Ramalingam Ganapathy
Book Image

Learning Google Apps Script

By: Ramalingam Ganapathy

Overview of this book

Google Apps Script is a cloud-based scripting language based on JavaScript to customize and automate Google applications. Apps Script makes it easy to create and publish add-ons in an online store for Google Sheets, Docs, and Forms. It serves as one single platform to build, code, and ultimately share your App on the Web store. This book begins by covering the basics of the Google application platform and goes on to empower you to automate most of the Google applications. You will learn the concepts of creating a menu, sending mails, building interactive web pages, and implementing all these techniques to develop an interactive Web page as a form to submit sheets You will be guided through all these tasks with plenty of screenshots and code snippets that will ensure your success in customizing and automating various Google applications This guide is an invaluable tutorial for beginners who intend to develop the skills to automate and customize Google applications
Table of Contents (16 chapters)
Learning Google Apps Script
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Configuring your script project to use external libraries


Sometimes you would like to reuse code from other script project(s) or other programmer's code in your projects. You can import external code as it resides in the current project. You need to make a simple configuration in your current project.

For an example, we will explain how to import the previous chapter's code into the current project.

  1. Open any one of your previously created scripts (for example, Chapter 8, Building a Workflow Application) in the script editor, save a version if you haven't already.

  2. Now, click on the File menu and then Project properties. The Project properties dialog will open as shown here:

  3. Copy the Project key value (this value should be different for your project).

  4. Open the current script, navigate to Resources | Libraries…, and then the Included Libraries dialog will open as shown here:

  5. Paste Project key (you already copied in step 1) into the Find a Library textbox and click on the Select button.

Now, the Chapter...