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