17.11.2014 Views

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix N: CAL <strong>Com</strong>mands<br />

Overview<br />

CAL Help<br />

ChemFinder Automation Language (CAL) is a set<br />

of commands that control many ChemFinder<br />

operations.<br />

You invoke CAL commands in either of two ways:<br />

• Interactively —Type commands and execute<br />

them one at a time on a command line.<br />

• Scripts—Use ASCII files containing a series of<br />

CAL commands to be executed automatically<br />

in sequence.<br />

Arguments to commands consist of numbers and<br />

text strings. You can enter a text string without<br />

punctuation unless the argument is not the last one<br />

on the command line and contains multiple words<br />

or spaces. In this case, you must enclose the<br />

argument in quotation marks.<br />

New in <strong>ChemOffice</strong> 2005<br />

Two new features in ChemFinder 9 improve<br />

program control in CAL:<br />

• IF / ELSE / ENDIF<br />

• bidirectional GOTO<br />

Previously, a GOTO statement could only jump to a<br />

label which had already been encountered while the<br />

script was being read, that is, could only jump<br />

backwards. This limitation is now removed. GOTO<br />

can jump to any label.<br />

New <strong>Com</strong>mands:<br />

• TO/FROM_SMILES, _CANONICAL<br />

• SQL, SQLSELECT (Oracle)<br />

• SUBSTR—extracts part of a string from a<br />

variable.<br />

Information about the CAL command and<br />

variables is available in the CAL Scripting Help<br />

window.<br />

To access CAL Help:<br />

1. From the Scripts menu select <strong>Com</strong>mand<br />

Line.<br />

The Enter Cal <strong>Com</strong>mand dialog box appears.<br />

2. In the Enter Cal <strong>Com</strong>mand dialog box, click<br />

the Help button.<br />

The CAL Scripting Help window appears:<br />

Menu <strong>Com</strong>mands<br />

Menu commands consist of a two-word command<br />

from the main menu and in some cases an optional<br />

argument.<br />

Following are examples of commands:<br />

file new<br />

edit paste<br />

search find<br />

record next<br />

Appendices<br />

<strong>ChemOffice</strong> 2005/Appendix CAL <strong>Com</strong>mands • 691<br />

CAL Help

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!