Google Apps Script
Encyclopedia
Google Apps Script is a cloud based scripting language for light-weight application development in the Google Apps platform. It is based on JavaScript, however instead of running on the client, it gets executed in the Google Cloud. Google Apps Script essentially provides easy ways to automate tasks across Google products and third party services.
Notice the use of JavaScript
-like syntax and the use of Google Web Toolkit
widgets.
Benefits
- Based on JavaScript-like syntax. Easy to learn.
- Under the hood, Google Apps Script uses the Google Web ToolkitGoogle Web ToolkitGoogle Web Toolkit is an open source set of tools that allows web developers to create and maintain complex JavaScript front-end applications in Java. Other than a few native libraries, everything is Java source that can be built on any supported platform with the included GWT Ant build files...
(GWT) to create and display user interface elements. GWT is easy to learn, and completely abstracts the complexity of AJAX/HTML from the developer. - Cloud based debugger for debugging App Scripts in the web browser.
Limitations
- Currently Google Apps Script does not allow connection to internal (behind-the-firewall) corporate databases, which is key to building business apps. Similarly, lack of other connectivity, such as LDAP connectivity, limits the level to which GAS can be used in the enterprise.
- There is no way to share scripts i.e. a new instance has be created for each use. This creates overhead when it is time to update a script, since each instance has to be update manually.
- UI Widgets in Google Apps Script lack support for displaying HTMLHTMLHyperText Markup Language is the predominant markup language for web pages. HTML elements are the basic building-blocks of webpages....
formatted content. This severely limits the formatting of text displayed in a Google Apps Script app.
Example
The following code demonstrate use of Google Apps Script UI Services and DocList Services to display contents of a Google Docs Collection in Tree format.Notice the use of JavaScript
JavaScript
JavaScript is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles....
-like syntax and the use of Google Web Toolkit
Google Web Toolkit
Google Web Toolkit is an open source set of tools that allows web developers to create and maintain complex JavaScript front-end applications in Java. Other than a few native libraries, everything is Java source that can be built on any supported platform with the included GWT Ant build files...
widgets.