I learned something from this macro and created a sketch of a possible approach:

Current projects Macros.kmmacros (4.7 KB)
Edit: For the archive: these macros provide a way to set tooltips of palettes on the fly.
I learned something from this macro and created a sketch of a possible approach:

Edit: For the archive: these macros provide a way to set tooltips of palettes on the fly.