I understand that it is possible to trigger an .scpt file that is saved somewhere on my computer from within a different .scpt file.
Can I call a specific subroutine of that .scpt file from a different .scpt file? I want to skip over the entire script, and only run the code that is found in one, specific subroutine
I understand that I can simply copy the subroutine into its own, dedicated .scpt file and accomplish what I want that way. This method is demonstrated in this answer. However, I would prefer not to have to do this, for the sake of convenience.
In addition, is it possible to also pass variables to that subroutine? My current need does not require this ability, but I am still curious.