Shortcut for renaming

 From:  Iwan (OZX)
10510.5 In reply to 10510.4 
I have this one to add a new style :
script: /* Open Add new style dialog */ var gd = moi.geometryDatabase; gd.styleEditorOpened(); var dialog = moi.ui.createDialog( 'EditStyleDialog.htm?titleid=Add style dialog title&index=-1', '', moi.ui.mainWindow ); if ( dialog.window.doModal() != -1 ) { var styles = gd.getObjectStyles(); if ( styles.length > 0 ) moi.ui.propertiesPanel.editStyleIndex( styles.length - 1 ); } gd.styleEditorClosed();

I want to change the name of the style I already have or add a new one at the same time. Exactly like the script you just posted for object name.