14.03.2014 Views

Scripting Guide - JMP

Scripting Guide - JMP

Scripting Guide - JMP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2<br />

JSL Building Blocks<br />

Learn the Basic Components of JSL<br />

<strong>JMP</strong> is scripted by a very simple language called <strong>JMP</strong> <strong>Scripting</strong> Language, or JSL. You might not need<br />

to ever learn JSL, because almost every feature in the product is accessible through a direct user<br />

interface, as well as through the scripting language. Even if you use JSL, you can usually get <strong>JMP</strong> to<br />

write the scripts for you rather than typing them in yourself. JSL will be most useful to the power user<br />

that wants to extend <strong>JMP</strong> past its normal operating realm, or for the production user who wants to<br />

automate a regularly scheduled analysis.<br />

JSL is used in many places in <strong>JMP</strong> internally.<br />

• Column Formulas are implemented internally in JSL.<br />

• Platforms are launched using JSL internally.<br />

• Platforms are interactively modified using JSL internally.<br />

• Some graphics are performed through JSL.<br />

This chapter shows how to recognize valid JSL in terms of how the language is written in text. It covers<br />

syntax. The next chapter, “JSL Operators,” p. 59, details many of the basic functions of JSL. The<br />

chapter “Programming Functions,” p. 91, discusses how to write meaningful scripts that do something<br />

useful. It covers semantics. First you have to learn how to write words and position commas and<br />

operators. Then you learn what the words mean and how to use them.<br />

Confusion alert! As you will learn in the section on logical operators, a single pipe<br />

symbol (|) represents a logical OR. In the interests of brevity, programming and<br />

scripting manuals commonly use a | to represent the word or when discussing<br />

alternative values.<br />

For example, a filepath can be either absolute or relative. So when we show an<br />

argument to a filepath function as absolute|relative, this means that you enter<br />

either absolute to indicate an absolute filepath, or relative to indicate a relative<br />

filepath. More than two options can be strung together with an or pipe in this way.<br />

So, when you see words separated with a |, read it as or.

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

Saved successfully!

Ooh no, something went wrong!