Follwing Prot’s Emacs: commands in popup frames with ‘emacsclient’ made sense for me. Like https://irreal.org/blog/?p=12460, I struggled with doing this but Prot’s approach _just works_™. 2 adjustments tho: full executable path needed for #emacsclient on #MacOS #KeyboardMaestro & the server config needed to change:
(use-package emacs
:ensure nil
:defer 1
:config
(if (and (fboundp 'server-running-p) ... https://somanyhills.com/2024/09/23/follwing-prots-emacs.html