Changing Shelves through MEL?

is it possible to switch which shelf is the active/visible shelf in a shelfTablayout through a MEL command?

I am looking into a way to tell maya which shelf I would like active when it starts up.

Thanks.

p.s. I looked into the prefs for Maya and tried to force a particular shelf to the top of the list, but it didn't seem to stick from session to session.

Here's an example  http://thnkr.com/wiki/index.php?title=Select\_a\_shelf\_tab\_with\_MEL

shelfTabLayout -edit -selectTab "Curves" $gShelfTopLevel;

Is probably more intuitive than the index based approach.

Be sure to eval the commands deferred if you execute them in the userSetup.mel as the shelf isnt built yet when userSetup is called.