Changing the color of a character in Adobe Illustrator with scripting

I’ve been working on a CD album insert for Emma as a design project. It has a lot of song lyrics and for compactness we’ve replaced line breaks in the lyrics with slashes: I thought it would be nice if the slashes played their role as more muted visual elements rather than looking like prime elements of the content, so I decided to color them all gray. This was a tedious thing to do manually…