Compiling applescript from a text source file

Is there a way to compile apple script code on the command line from a text source file, as you know, how is this done in every real programming language? I have an applescript.app file, and it seems the only way to edit it is to use my own script editor application. However, the lack of a source text file leads to all the problems when loading a binary file into different environments. From what I can say, in many cases it is impossible to edit the source in binary format if the script editor for some reason cannot load the binary file.

What I'm trying to do is make it so that I can compile it in the environment in which it will work. Any suggestions are welcome ...

+5
source share
1 answer

Try the command osacompile.

+12
source

All Articles