r/GoogleAppsScript • u/SirVincentMontgomery • Jun 02 '22
Question How to search for Google Apps Script Libraries
Is there a good resource for finding Google Apps Script Libraries/code snippets/etc?
For example I want to create a script that gets a color from a cell. I want the user to be able to do one of the following:
enter a hex value (with or without #)
enter rgb values
change the background color
enter a color name (blue, red, yellow, etc)
Possibly have a color picker popup appear when the user clicks the cell
Basically I want it to be robust so that the user can get me the color in whatever way they prefer. I *could* code this, but if such a thing exists I would rather use that.
This particular situation has come up numerous times for me with different situations where if someone has done this thing before and went through the troubleshooting to make it robust, I would rather use that code that invent my own. But when I search for such things I get lost in the weeds of results that show me a tip that is geared towards building the code instead of finding and adapting it.
Feel free to point me to code that does the above example, but I'm really looking for tips/resources to help find libraries/code snippets in general.
2
u/mhawksey Jun 06 '22
There is a pretty comprehensive database of script libraries shared here https://github.com/tanaikech/Google-Apps-Script-Library-Database
I often search the Stack Overflow Google Apps Script tag for code snippets https://stackoverflow.com/questions/tagged/google-apps-script