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.

ChemFinder<br />

Automation<br />

Language (CAL)<br />

ChemFinder is equipped with its own scripting<br />

language, the ChemFinder Automation Language<br />

(CAL). CAL is used to operate the program from<br />

the keyboard, or to create custom scripts for<br />

automating simple operations such as switching<br />

between forms or sending data to Microsoft Excel.<br />

CAL scripts are stored in text files, with their<br />

pathnames stored in forms. In <strong>ChemOffice</strong> 2005<br />

you have the option of storing scripts directly in<br />

formfiles. Scripts created in <strong>ChemOffice</strong> 2005 are<br />

stored internally by default. When you open a form<br />

which references external script files, you will be<br />

prompted to store the script internally.<br />

If you choose to convert the external script files to<br />

internal, the scripts will be saved when the form is<br />

saved, and the original script files may be deleted.<br />

Scripts originally saved as internal may be also be<br />

saved externally.<br />

TIP: You can save the form with a different name, and the<br />

original will remain untouched (in which case deleting the<br />

script files would not be a good idea).<br />

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

can type CAL commands and execute them one at<br />

a time.<br />

The <strong>Com</strong>mand drop-down list contains previously<br />

entered commands.<br />

To rerun a previously entered command:<br />

1. Select the command from the list.<br />

2. Click Execute.<br />

For detailed information about the command<br />

language, see Appendix N: “CAL <strong>Com</strong>mands.”<br />

Getting CAL Help<br />

To display information about the CAL scripting<br />

language:<br />

• In the Enter CAL <strong>Com</strong>mand dialog box, click<br />

Help.<br />

The CAL Scripting Help window appears<br />

containing commands, variables, and syntax<br />

notes.<br />

ChemFinder<br />

If you choose to leave the form unmodified, the<br />

alert will continue to show up every time the form<br />

is opened. You can suppress the prompt with the<br />

Check for external scripts checkbox in the General<br />

tab of the Preferences dialog box.<br />

To perform a CAL command:<br />

• From the Scripts menu, choose <strong>Com</strong>mand<br />

Line.<br />

TIP: In <strong>ChemOffice</strong> 2005 this window is resizable.<br />

<strong>ChemOffice</strong> 2005/ChemFinder Customizing ChemFinder • 347<br />

ChemFinder Automation Language (CAL)

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

Saved successfully!

Ooh no, something went wrong!