CompiledScript

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:
  • If the script is strored in the file system, this string should be of the form "file:script_name".
  • If the script has been stored in the Virtual Ticket database (dragged-and-dropped into the Stored Scripts window of Virtual Ticket Administrator), the string should be of the form "database:script_name".

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:

See also

Application, DoAppleScript, ScriptApplication

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.