I know NOTHING about MEL mate but I tried this...made a simple cube and assigned different colours to the faces...and experimented whilst watching the script window and came up with this...and it worked....dunno why you want to use the script editor though mate??
select -r pCube1 lambert4SG;
so I assume pCube1 is the model and then I just typed in lambert4SG and it highlighted those relavent colours...hope this helps
cheers bullet
bullet1968
"A Darkness at Sethanon", a book I aspire to model some of the charcters and scenes