When/how do I write Apps scripts in Dart - google-apps-script

Is it possible to create apps script using Dart and the Dart->JS translator?
I'm guessing the answer is no, but I'd be interested in learning of any plans to integrate the two development environments.

You guessed right, the answer is no indeed. You can't write Apps Scripts in Dart.
Although your second question can only be answered by a Googler, but as a Top Contributor, I can say that if such plans exist they're probably not for the near future. I'd guess that it will not be here within a year.
Google Apps Script have a very specific set of libraries and usage that I imagine not to be Dart's team goal. I think such integration does not have much "appeal" for either teams (Apps Script and Dart).

A Googler has shown in DartConf 2018 lightning talk for using Dart in App Script. He promised it will be open sourced. The demonstrated solution includes App Script library in Dart, automated build and deployment through Google Drive.

Related

Turning a Google apps script library into ... an extension?

I've got a GA script library, which contains some Google Docs operations that I use a lot (such as specific formatting, heading numbers or specific searches). When I want to use these functions, I currently add a script to the document, that loads the menu builder (in the library), and then add the library to that script. That seems to be the shortest way of using the library across multiple files. I have these questions:
(1) Is there a way in which these library functions can be available to all my Google Docs, without having to load them per document? My understanding is that this is not possible.
(2) Is this correct: The best way to make these library functions available would be to build an extension, and publish this on the Chrome store. (Possibly as 'beta extension'?)
If this is correct, then could somebody point me to a simple step-by-step guide for turning scripts into docs extensions? I've looked around, but what I saw wasn't all that clear. Ideally I'd like to be able to update the extension frequently, as it's still under development.
Thanks!

Using a text editor other than the Google Apps Script default [duplicate]

This question already has answers here:
Does Google Apps Script support external IDEs?
(7 answers)
Closed 7 years ago.
I have to to work on a project in Google Apps Script (GAS), and using their built-in IDE/editor is not satisfactory for a number of reasons. Before I list these, my question is whether I can use a different editor/development environment that the one Google provides (without having to copy/paste my code from that editor, of course).
I use NeoVim for everyday work, so I would like to be able to use something with at least Vim emulation or, better yet, to be able to sync my GAS files to my project being hosted online, without having to leave my normal editor.
The built-in IDE for GAS is weak, with no obvious documentation/keyboard shortcuts that I've come across, which makes even switching between script files a small chore.
This all goes without mentioning the difficulty with debugging (although betterlog makes this almost tolerable).
I feel like I must be missing something huge (a tutorial maybe) because I feel like Google would be one of the first to acknowledge developer comfort/laziness when building their tools.
If you can also use Eclipse, there is a helpful example guide of how to do so for GAS projects within the Google Apps Script documentation
https://developers.google.com/eclipse/docs/apps_script
perhaps there is something in there for you to adapt.

functional tests for google maps

I'm trying to write functional tests and we have a customer report page with google map which we use to display reported customers on in.
I read this post and I wondered whats the best way to write functional tests for google maps.
I am using Yii framework .
thanks guys
UPDATE:
I also have polygons, indicating regions of these customers, how are polygons displayed and how can I write tests for them?
In my opinion would be good to use Selenuim in this case. Obvoiusly there is lots of JavaScript involved and only good way how to really test it is to run tests in the webbrowser and replicate user activity.
For this you will need to install and setup Selenium server:
And the use PHPUnit Selenium extension

Threading in Google App Script

Is it possible to do threading in Google Apps Script? Currently I am setting up triggers programmatically to do threading. Is there a better way?
There is a great example from Bruce Mcphearson. His example Parallel Processing in Apps Script uses Map Reduce in exercise. He is utilizing triggers as well, but perhaps may provide some different perspective.

Google Drive collaborative editor

With the launch of Google Drive, i have been looking over the API and information available. I failed to find example or information that its even possible.
I would like to create a editor that two users can collaborate within at the same time. We all seen how google's own editor can do this.
The idea is for creating a demo where two programmers can work on the same project and work on the same files replacing subversion or other team solutions with a alternative solution.
Anyone able to find any examples in the google api or elsewhere, or better yet able to share some experience/code.
I assume its possible as WeVideo release an app for collaborate video editing.
Currently, the Drive SDK doesn't offer this feature, sorry. Those apps that are achieving this are performing the collaborative aspects by themselves.
The SDK does support ETags so that your app can check that the file content has not been changed since it loaded the data, which will help.
Google Drive now has the Realtime API (as of 2013, I think).