Frequently Asked Questions for the Office Scripting Framework
Questions
Answers
I have removed the examples provided with the Script Framework installation and installed my own but the script in ExampleSpreadSheet.sxc still works. Why?
Both the script and the Key bindings are contained in the document itself, at the moment the [Assign Script] dialog does not display scripts or bindings stored in documents.
How can I store a script, menu or key bindings for scripting in a document?
In order to save a script event binding to a menu item or key into a document there are two steps which must be followed. Firstly, set up the binding in the usual way using the "Assign Script To ..." dialog. Then open the Tools->Configure dialog, and select the "Menu" tab. Click the "Save" button, select the document into which you wish to save the binding, and click "Save". You will be prompted with a dialog that says "The file already exists. Overwrite?". It is OK to click "Yes" as this will simply write the bindings into the file. Saving a binding to an event into a document can be done by clicking the "Document" radio button in the "Assign Script to Event" dialog.
Why is there a delay in starting the first script?
The delay is caused by the startup of the inprocess JVM by OpenOffice.
Why do I have to use one dialog to work with StarBasic macros [Tools/ Configure] and another to work with my new Java scripts [Assign Script...]?
The StarBasic macros are completely separate from and do not use the Scripting Framework. As such they use their own configuration and settings dialogs. In the future the Scripting Framework and StarBasic dialogs will be integrated so users have one consistnet way of working with macros/ scripts, regardless of which language they have been written it.
Last Modified: Tue Mar 12 11:40:28 GMT 2003