Anyone know how to assign a profile in photoshop using applescript?

Has anyone figured out how to assign a profile in photoshop CS/CS2/CS3 using applescript yet? I can’t believe that they would put convert in and not assign… I have been pulling my hair out over this for hours! i don’t want to have to do this through colorsysnc scripting! Why cant Adobe just get it right for once? there is nothing in any of their documentation about this (as seems to be the case with most photoshop features i want to automate)… Any help would be greatly appreciated…

(PS sory for the rant but i’ve been banging my head against this wall for too long…)

This works for me

tell application “Adobe Photoshop CS3”

set color profile name of current document to "Adobe RGB (1998)"

end tell

Model: 12 macs now…
AppleScript: 2.2
Browser: Safari 523.15
Operating System: Mac OS X (10.5)

Just like paracetamol, only better!
Thanks Weedinner