Answered
cs4 set color of text frame does not work
I need to set registration color to selection and the following doesn't work
var colour = app.activeDocument.swatches['[registration]'].color;
selection[0].contents.fillColor = colour;
using `selection[0].fillColor` doesn't work also
