Rename sprite editor slices by script

Is there a way to rename the slices created in the sprite editor by script?

It is absolutely doable using AssetDatabase, TextureImporter, EditorUtility and some String.Format.

Also, I just had to rename 768 slices :slight_smile: so made a tool just before.
Grab it at https://github.com/eppz/Unity.Library.eppz_kit/blob/master/Editor/EPPZEditor_SliceRenamer.cs