cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

automatic script

hcarr01
Level VI

Hello, is it possible to create a script in JMP that launches automatically every n minutes? (JMP 17)

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .

1 ACCEPTED SOLUTION

Accepted Solutions
AApperson
Level II


Re: script automatique


@Georg wrote:

I think you can build a loop in JMP to do so, but better would be to use the Operating System to schedule the task like possible in Windows etc.

About the Task Scheduler - Win32 apps | Microsoft Learn



Don't forget to add the //!" to the first line if you try to run this via task scheduler (windows). This is so it will automatically run and not just open.

https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/run-a-script.shtml# 

 

Line1:

 

//!

 

View solution in original post

6 REPLIES 6
Georg
Level VII


Re: script automatique

I think you can build a loop in JMP to do so, but better would be to use the Operating System to schedule the task like possible in Windows etc.

About the Task Scheduler - Win32 apps | Microsoft Learn

Georg
AApperson
Level II


Re: script automatique


@Georg wrote:

I think you can build a loop in JMP to do so, but better would be to use the Operating System to schedule the task like possible in Windows etc.

About the Task Scheduler - Win32 apps | Microsoft Learn



Don't forget to add the //!" to the first line if you try to run this via task scheduler (windows). This is so it will automatically run and not just open.

https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/run-a-script.shtml# 

 

Line1:

 

//!

 

Georg
Level VII


Re: script automatique

In my case I have not used the //!, because I found it annoying when opening the script for editing it would have executed all the time (I often forgot ...).

 

Instead in Win10 using Task-Scheduler, and adding JMP.exe as Program and the script path as optional argument, JMP executes the script in defined way, so "//!" is not needed. Of course, the script needs to close JMP after finishing ( Quit(); ).

Georg
Craige_Hales
Super User


Re: script automatique

@Georg  suggested using the OS scheduler to relaunch JMP periodically.

JMP also has a schedule() function, but it requires leaving JMP running.

https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/utility-functions.shtml#ww2805822

 

Craige
Georg
Level VII


Re: script automatique

great, thanks, was not aware of, that's the reason why reading community is quit helpful!

 

So I think the solution depends on the environment and requirement in detail. We use task scheduler of operating system, so that for each run a new instance of JMP is started.

 

Georg


Re: script automatique

See Help > Scripting Index. Then search for the Schedule() function. This function works entirely within JMP and does not rely on the OS.