|
Script files are standard ASCII text files that you create using Sahafi or any Mac word processing application that can save your script as an ASCII text file. If you create the script in Sahafi, use the Export Text command in the File menu to save it as an ASCII text file. You can also use a database, spreadsheet, or other application to create a script as long as it allows you to enter or program text and save it as an ASCII text file. Since a script is an ASCII text file, you can also create a script on a non-Mac platform and import it into a Mac word processor that saves files as text.
Scripts contain a series of valid ReadyScript statements that instruct Sahafi how to build a new document. Sahafi interprets only the ASCII text information in the script file, and strips it of spaces and case information before it processes the statements.
A statement consists of a ReadyScript command (the equivalent of a Sahafi command), an equal sign (=), and one or several "arguments." An argument is a specific attribute or option of the command. Argument values are numbers that identify or define a quantity or attribute of the argument.
When you choose the Open Script command, Sahafi reads your script, opens a new document window, and creates a new document according to the specifications in your script. If you've made an error in the script, Sahafi informs you of the error and, in most cases, how to correct it. Correct the error either in a Sahafi text block or in your word processing or other application, and reopen the script.
|
|