Jumat, 18 Mei 2018

Sponsored Links

Why Apps Script isn't the Best Solution for Workflow in Google Apps
src: kissflow.com

Apps Script is a scripting language for light-weight application development in the G Suite platform. It is based on JavaScript 1.6 with some portions of 1.7 and 1.8 and provides subset of ECMAScript 5 API, however instead of running on the client, it gets executed in the Google Cloud. According to Google, Apps Script "provides easy ways to automate tasks across Google products and third party services." Apps Script is also the tool that powers the add-ons for Google Docs, Sheets and Slides.


Video Google Apps Script



Benefits

  1. Based on JavaScript; easy to learn.
  2. Cloud based debugger for debugging App Scripts in the web browser.
  3. It can be used to create simple tools for an organization's internal consumption.
  4. It can be used to perform simple system administration tasks.
  5. Community-based support model. [2]

Maps Google Apps Script



Limitations

  1. Processing limitations -- As a cloud-based service, Apps Script limits the time that a user's script may run, as well as limiting access to Google services.
  2. Currently Google Apps Store does not allow direct connection to internal (behind-the-firewall) corporate databases, which is key to building business apps, however, via use of the JDBC service, this can be overcome, if connections are allowed from Google servers to the internal database server. Similarly, lack of other connectivity, such as LDAP connectivity, limits the level to which GAS can be used in the enterprise.
  3. Due to the cloud nature of Apps Script, functions related to date and time will produce results that seem to be incorrect due to the data crossing time zones. Using Date/Time objects and functions without very precise declaration and thorough testing may result in inaccurate results.

G Suite Developers Blog: Apps Script Dashboard and Quotas
src: 1.bp.blogspot.com


Example

The following code uses the Apps Script UI Services and DocList Services to display contents of a Google Drive folder in Tree format.

Notice the use of JavaScript and the use of Google Web Toolkit widgets (Google also introduced the HTML Service in June 2012, as an alternative to GWT widgets. It lets you serve web pages that can interact with server-side Apps Script functions).

Embedding HTML in GAS with a GWT Widget:


Dashboards in Google Apps Script - YouTube
src: i.ytimg.com


Add-ons

In March 2014, Google introduced add-ons for Docs and Sheets (soon followed by Forms). The add-on stores let users add extra features to Google editors, such as mail-merging, workflows, diagrams builders,... All add-ons are either 100% built with Apps Script or simply use Apps Script to display a UI in the Google editors while relying on an external backend to perform some tasks. For example, MailChimp, a mail-merging tool, has an add-on for Google Docs that communicates with MailChimp platform to send emails.

Before add-ons, it was possible to publish scripts for Google Sheets in the Script Gallery. When users installed scripts through this gallery, a copy of the Apps Script code was installed on the user's Sheet. With add-ons, the source code is not visible to the end user and everyone is using the latest version published by the developer. This new approach make it easier to support existing code and helped convince several companies, such as MailChimp or LucidChart to invest in Apps Script.

As part of the add-ons release, Google also introduced a UI Style Guide and CSS package to help developers built add-ons that integrate smoothly into the editors. Each add-on is also reviewed by Google before its publication and developers can benefit from advises from Googlers to provide a better user experience. It is not possible to embed ads in add-ons but it is possible to monetize them.


Google Apps Script 入门 Beginner guide to coding with Google Apps ...
src: justcode.ikeepstudying.com


See also

  • Google App Engine

Deploying a Google Apps Script Web Application PART 2 - YouTube
src: i.ytimg.com


References


Fishy Security Lab on Twitter:
src: pbs.twimg.com


External links

  • Official website
  • developers.google.com/apps-script/case-studies

Source of the article : Wikipedia

Comments
0 Comments