INFORMIX SOFTWARE, INC., LENEXA, KS Wingz Technical Support Bulletin Number 009 Title: The Startup Script Date: January 16, 1991 Two special Wingz script files, WZScript and DG, contain the Hyperscript commands that create the default menus and dialog boxes used by Wingz. These script files are executed automatically when Wingz is launched. To conserve disk space, WZScript and DG are compiled without the source Hyperscript text. The files containing the source Hyperscript text, WZScript.scp and DG.scp, are also included with Wingz. The WZScript.scp and DG.scp text files can be loaded into the Script Editor by selecting Open Script in the Script menu and clicking the All Documents radio button. Both of these files contain excellent examples of menu and dialog box commands. WZScript.scp and DG.scp may be modified and recompiled to customize Wingz. It is recommended, however, that a "startup" script to customize the Wingz environment be used, rather than modifying these scripts. Modifications made in the WZScript and DG files cannot be supported by Wingz Technical Support. A startup script is another specialized Wingz script file. A startup script is automatically executed when Wingz is launched. The Startup script needs to be located in the same directory, or folder as the Wingz application, unless Wingz is being used through a network drive or a pathed Unix directory. In that case, the Startup script should be located in your local directory. A startup script may be created by selecting New Script in the Script menu, adding the Hyperscript commands, and saving the file as "Startup" with the Save command in the File menu. The Startup script may be used to set many default settings for Wingz. For example, the following lines of Hyperscript will set the default font, font size, and numeric format for data entered in any new worksheet: text font "Helvetica" text size 12 format General In most versions of Wingz, a sample Startup script has been provided. For the following versions, the normal location and extension for the sample Startup script is: Apollo /Wingz/Examples D E C /usr/lib/Wingz/Examples D G /usr/opt/Wingz/Examples HP /Wingz/Examples IBM RISC /usr/lpp/Wingz/Examples Macintosh Examples folder MIPS /usr/Wingz/Examples Motorola /usr/Wingz/Examples Next Examples folder OS/2 Wingz\Examples SCO /usr/Wingz/Examples SGI /usr/Wingz/Examples Windows Wingz\Examples If you do not already have a Startup script, copy the example Startup script to the same folder, or directory as the Wingz application. This Startup script adds four menuitems to the Sheet menu when Wingz is launched. These menuitems are "Set Cell Size...", "Delete Block...", "Insert Block...", and "Text/Value Conversion...". Information explaining the functions and operation of these menuitems is found in the Cellsize, Delete, Insert, and Textval scripts that accompany the example Startup script in the Examples folder, or directory. Open these scripts by using Open Script in the Script menu. These scripts provide many useful Hyperscript examples of using menuitems and dialog boxes. If you are already using a Startup script, and wish to add the example menuitems to the Wingz menus, simply copy and paste the Hyperscript commands listed in the example Startup script into your existing Startup script. The Startup script may help you adapt Wingz to your particular preferences and requirements, and will provide an introduction to the flexibility and power of Hyperscript.