Returns an object representing a compiled AppleScript and allows execution of the script's handlers.
Core function
Syntax
CompiledScript( script )
Parameters
Parameter | Description |
---|---|
script | A string that specifies the compiled script:
|
Description
CompiledScript is a top-level function and is not associated with any object.
Use the CompiledScript method to access a compiled AppleScript. In the object returned by CompiledScript, each handler of the script will be represented by a method of the same name. Calling one of these methods in the MetaScript will call the AppleScript handler and return the value returned by the handler. The method will be called synchronously: execution of the MetaScript will wait for the handler to return.
Examples
Assume the following compiled OpenOnlineProofing script has been stored in the Virtual Ticket database (dragged-and-dropped into the Stored Scripts window of Virtual Ticket Administrator):
To use this script in the MetaScript of a form: