I'm trying to create a script that will allow me to change any font colors that are black and inside a table (#000000) to a new color. The following Slides file has an example of a table with different colors located in the table. My goal is to iterate through all of the table cells, find any text that is black and change it to the new color.
In the script editor, there are two scripts. The first one, changeAllTableColors(), does not work as it is throwing an error of "Exception: The parameters () don't match the method signature for SlidesApp.Table.getCell." I know that means that the data is in an array that does not work with the function but I don't know how if there's a way to use forEach in this instance.
I also duplicated the script, changeSingeCellTableColors(), and used a single cell in the getCell(0,1) and the script will change the color of the font found in cell (0,1). I think I could use something like getMaxRow and getMaxColumn and loop through the cells by using two loops that work through each cell with getCell( i, j ) but is that the best way to do this?
TL:DR - How do I adjust the changeAllTableColors function so that all cells are searched and the font colors are changed.
Thanks!
Adam