AppleScript option ?arg arg ...?
If the compilation is successful, then the command will return a token that you can pass to the "run" subcommand. If the compilation fails, then the return value will be the error message from AppleScript, and the pertinent line of code, with an "_" to indicate the place where it thinks the error occured.
The compilation is controlled by flag value pairs. The available flags are:
You can store data and procedures (aka handlers) in a script context. Then later, you can run other scripts in this context, and they will see all the data and handlers that were set up with this command. You do this by passing the name of this context to the -context flag of the run or execute subcommands.
Unlike the straight compile command, the code compiled into a script context is run immediatly, when it is compiled, to set up the context.
-name string
-parent contextName
context
script
contexts ?pattern?
scripts ?pattern?
load takes the following flags:
-rsrcid integer
If neither the rsrcname nor the rsrcid flag is provided, then the load command defaults to -rsrcid = 128. This is the resource in which Apple's Script Editor puts the script data when it writes out a compiled script.
-context contextName
store takes the following flags:
-rsrcid integer