How to script to submit scheduled jobHi
Is there a scriptable way to submit a scheduled job?
Thanks
Automation and ScriptingMass CustomizationRe: How to script to submit scheduled jobOne other thing to at @mzwald, . Add //! to the first line of the script, and the script runs automatically when opened in JMP. (In other words, the script editor does not open.). When that's combined with exit(); and the use of "private" or "invisible" tables, the user of the script might not notice it running.
Oh and about exit(); it makes the current instance of JMP or the Instance JMP it is run in quit. So make sure you save before running a script with exit(); in it.
Re: How to script to submit scheduled jobAs was suggested by @txnelson, Windows Task Scheduler is your friend (or Automator on MacOS). To automate a JSL script, setup a Windows task to call the JMP.exe program with the .jsl script file as the argument. This will cause JMP to run the script with the frequency you specify. You probably want to include an exit() statement at the end of your script so that JMP closes after the script runs. Take a look at this blog post which shows how to do it: Automating JMP import and publishing using Window Task Scheduler
Re: How to script to submit scheduled jobThere is the Schedule() function in JMP, which will run a script X number of seconds in the future. But to do what you are looking for, I suggest you look at operating system tools and/or 3rd party products.