“I converted my text layer to outlines before applying script,”
That’s an Illustrator term, so are you working with an Illustrator file or a text layer in AE that you used Layer>Create Masks from Text to convert it to mask shapes? That script only works on layers that have masks applied.