Getting started with scripting can feel daunting at first. I've assembled a couple of links that might help you get started.
The first one is a recording from a discovery talk a couple of years ago, its a great place to start. The Journal I used is attached below.
This talk was influenced by some conversations with Joseph Morgan, a deep JMPer, I think his title at JMP includes the phrase Principal Genius, but I'm not sure . Luckily he presented a talk that covered a lot of what was in several of our discussions.
His talk is based on paper that was published in the JMPer Cable. I remember reading the article when it came out, but not really "getting" it. His talk made everything click. So read the JMPper Cable paper (pg 15) after you watch the video.
Joseph Morgan has presented this material at Pre-Discovery Conference tutorial talks too, although I don't think the talks are recorded. I highly recommend taking his tutorial if you have the chance.
Abstract:
In JMP, it is easy to capture and reuse scripts. Often the next step is to build custom dialogs, which use these scripts with different tables and column names. These basic projects can easily get derailed by difficulties in capturing file names and paths as well as useable column names. In this talk, I will cover methods for capturing paths, files and column names, as well as an essential JSL programing strategy that will make working with these tricky elements much less treacherous. Whether you've been writing JSL for a while or you are just getting started, these tips and tricks for "peeling function onions" will prevent tears so that you can spend your time developing your applications rather than trying to diagnose cryptic problems.