'How to get Operating System version and name in Google App Script?

I am currently developing a GMail addon and it requires some Operating System related information. The kind of information we get when we run 'Navigator.UserAgent'

I can determine some/partial data using the event parameter 'clientPlatform'. But it does not have the more verbose information found in Navigator.UserAgent.

I also tried HtmlService.getUserAgent() but it returned null.

Is there a way to get 'userAgent'-like properties from Google Apps Scripts?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source