- Place the Rasmol script commands in a plain text file. Each command is placed on a separate line, without semicolons. GoLive has a simple text editor that can be used for this purpose; it is opened by selecting File>New Special>Text Document from the File menu.
- The script file that was used for the second button in the above table is shown below:
- After creating the script file save it to a location within your site folder. In the above case the file was saved within the Page6_Media folder, which is within the Pages folder. The name that was given to this file is scriptA.spt. The file extension ".spt" should be used when naming script files. Below is a picture of the site management window which shows the location of this file within the site. Double-clicking on the script file in the site manager window will open it for editing in the text editor.
- To load this script file, the second button in the table below uses the script attribute having the value script 'Page6_Media/scriptA.spt'. This done by selecting the button and then selecting the Attrib tab in the Inspector palette: