Scripting system
First Claim
1. A computer--implemented method for scripting an application program function comprising the steps of:
- instantiating a script interpreter, the script interpreter being responsive to a trigger event such that in response to the trigger event the script interpreter interprets scripts commands in an attached script;
attaching a script to the script interpreter, the script defining a script event by which the script is triggered, the script further including script commands including a command to execute the application program function; and
executing the application program to detect a trigger event and providing the script interpreter with the detected trigger event.
3 Assignments
0 Petitions
Accused Products
Abstract
A scripting system for scripting functionality in an application program. A script interpreter which is instantiated as an object separate from the application program is provided to interpret scripts. The script interpreter contains a list of scripts that may be invoked and a list of corresponding trigger events that cause the scripts to be invoked. The scripts, which are separate from both the application program and the script interpreter, contain script language commands which include commands to execute functions in the application program. The application program is responsible both for defining the functions that it will make available for execution from scripts, as well as for indicating to the script interpreter that a particular type of event has occurred. In response to an indication from the application program that a trigger event has occurred, the script interpreter will interpret the appropriate script to execute the scripting commands, and in particular to execute application program functions when they are encountered in the script.
-
Citations
58 Claims
-
1. A computer--implemented method for scripting an application program function comprising the steps of:
-
instantiating a script interpreter, the script interpreter being responsive to a trigger event such that in response to the trigger event the script interpreter interprets scripts commands in an attached script; attaching a script to the script interpreter, the script defining a script event by which the script is triggered, the script further including script commands including a command to execute the application program function; and executing the application program to detect a trigger event and providing the script interpreter with the detected trigger event. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A computer--implemented method for scripting exported application program functions comprising the steps of:
-
forming an initialization file that includes a dynamic link library list for an entry point to the exported application program function; instantiating a script interpreter, the script interpreter being responsive to a trigger event to trigger an attached script; attaching a script to the script interpreter, the script defining a script event by which the script is triggered, the script further including script commands including commands to execute the exported application program function; indexing into the script interpreter a correlation list of attached scripts and script events by which the attached scripts are triggered; executing the application program to detect a trigger event and providing the script interpreter with the detected trigger event; and executing the script interpreter in response to a detected trigger event, said executing step including the step of interpreting the script commands in the attached script that corresponds to the trigger event listed in the correlation list of attached scripts, said interpreting step including the step of executing the exported application program function based on the entry point listed in the dynamic link library in response to interpreting a script command to execute the exported application program function. - View Dependent Claims (19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30)
-
-
31. A computerized apparatus for scripting exported functionality from an application program, said apparatus comprising:
-
a memory for storing (a) an application program which includes an entry point for the exported functionality, (b) a script interpreter, the script interpreter being responsive to a trigger event such that in response to the trigger event the script interpreter interprets script commands in an attached script, and (c) a script which defines a script event by which the script is triggered and which includes script commands to execute the exported functionality of the application program; and a processor for instantiating the script interpreter, for attaching the script to the script interpreter, and for executing the application program so as to detect a trigger event and so as to provide the script interpreter with the detected trigger event; wherein in response to the detected trigger event, the script interpreter interprets the script commands in the attached script so as to cause the exported functionality of the application program to be executed commencing from the entry point of the application program. - View Dependent Claims (32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45)
-
-
46. An apparatus for scripting exported functionality of an application program, said apparatus comprising:
-
a memory for storing (a) an application program which includes an entry point for the exported functionality, (b) an initialization file that includes a dynamic link library list for the entry point, (c) a script interpreter which is responsive to a trigger event so as to trigger an attached script, and (d) a script which defines a script event by which the script is triggered and which includes script commands including commands to execute the exported functionality of the application program; and a processor for instantiating the script interpreter, for attaching the script to the script interpreter, for indexing into the script interpreter a correlation list of attached scripts and script events by which the attached scripts are triggered, and for executing the application program so as to detect a trigger event and so as to provide the script interpreter with the detected trigger event; wherein in response to a detected trigger event, said processor executes the script interpreter so as to interpret script commands in an attached script that corresponds to the trigger event listed in the index correlation list of attached scripts, whereby the exported functionality of the application program is executed based on the entry point listed in the dynamic link library. - View Dependent Claims (47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58)
-
Specification