Suggestion: a modification to Execute Swift Script action

That's what I've done—if you look at my App Launcher macro, you'll see that the macro checks if an invisible file exists before doing anything—that file holds the compiled Swift script. If the file is there, the macro proceeds. But if the file is missing, a subroutine creates it; here's that sub:

Download Macro(s): sub-Compile Swift Script.kmmacros (8.3 KB)

The first step puts the code into a text file (using a heredoc, so no special characters, returns, etc. are lost). Then once the file exists, the compiler is called and the raw Swift source is deleted. Compiling makes a big speed difference in this macro, so it was important that anyone running it used the compiled version of the code. This was my solution to make sure they always had it.

-rob.