I need to develop a simple gmail script that collects some stats. I’ve found an example, something like: go to GoogleDocs, create a new spreadsheet, go to Tools -> Script Editor, enter your script. That’s fine and clear. But how to deploy it to my customers and how they can run it?
Is it possible to give them a link or a package from which they can simply install this script and a new button “Stats” will appear in their gmail account?
You can have only Contextual Gadgets or Sidebar gadgets in GMail app. You can’t make a script or its result appear directly in GMail.
An apps script can be published to a gallery. See Sharing Your Scripts section. It’ll have to wait for a Google review though. I tried submitting a script awhile back but it never got a confirmation that it was published at some point.
A couple of fast ways: