Is it Possible to Play a Sound When a Palette Opens or Closes?

Is there a way to play a sound when a palette opens or closes?

Not natively, in as such the app preferences don’t have a setting for this.

However, if you are triggering palettes via the show a macro group action, then you could add the play a sound action in there and accomplish it that way.

Example actions screenshot (click to expand/collapse)