Swift Script - JIT? Or precompiled and cached?

I agree that it would be great if Peter provided enhanced scripting support.

In the meantime, here is what I have done to address the issues you have raised:

  1. Store all of my compiled script files in a specific KM folder, which is in my DropBox folder.
  2. Create a KM Global Variable which defines the path for this folder:
    DND__KM_Scripts_Folder
  3. Use this KM Variable in all of my "Execute AppleScript" Actions (and other script actions as well), so that I only have to provide the name of the script file:
    image

I also use Dropbox to sync my KM Macros. So all of my Macros and scripts are sync'd seamlessly.

HTH.