We can read using DocumentColorSpace.RGB, but we cant change the mode.
Right you need to create a new document in the correct color space and if necessary move all artwork to the new file. You can't change the color space of an existing document by scripting.
if you have CS6 or above you can executeMenuCommand
this will switch the active documents colour mode