The script compiler requires a certain keyword
within a script command, but none is present. This renders other
portions of the script command invalid.
Common solutions are:
Check keywords. Check the syntax of the
commands that may have caused the error. If there are keywords
missing for the command, such as the word "table" in the parameter
"table table_name," be sure to add the proper keywords.
Check spelling. Review any names that may
be misspelled. To ensure that the name is referenced properly,
click the Names button in the Script Editor window and find the
name of the item. When you locate the item, highlight it and click
OK; the Script Editor window will appear. Place the insertion point
in the location where the name is referenced and choose Paste from
the Edit menu. The name will appear (qualified, if necessary) in
the location where you placed the insertion point.
Be sure you aren't using a keyword as a
Review the statements in the script and be
sure there's a period or semicolon at the end of each.
Check for a missing "end if" portion of an
if then...end if statement in the script. Be sure that you have an
equal number of "if" and "end if" keywords if you use conditional
statements in your script.