Go to: Synopsis. Return value. MEL examples.
 saveAllShelves 
string
      
saveAllShelves is undoable, NOT queryable, and NOT editable.
This command writes all shelves that are immediate children of the specified control layout to the prefs directory.| boolean | True if successful, otherwise issues an error message and returns false. | 
global string $gShelfTopLevel; saveAllShelves $gShelfTopLevel;