Thanks for the script, Graechan. I do have a couple of questions on the operation.
When I use a single line of text, the gradient is applied and I get the Chrome effect, as in the tutorial.

I'm have not looked to see how the tutorial does it, but would it better if the script applied the gradient to only the text/object, rather than the entire layer (autocrop layer, apply gradient, restore original layer size)?
When I use multiple lines, the gradient is applied to all the text and I lose the effect I got with the a single line.

Should the script apply the same effect on each text line, in order to get a consistent effect?
Do those seem like reasonable suggestions or am I off base?