- Set "Trigger Predefined Action" to "Execute Terminal Command"
- Set the command to execute to
osascript -l JavaScript $HOME/~your-path~/BTT/~filename~.applescript
For git (versioning)
I changed my code to JavaScript (JXA).
If you want to run the code in the Script Editor don't forget to change the language:
And if you want to run it from the Terminal, run it with osascript -l JavaScript ~filename~.applescript
.