cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Clanlope
Level III

COM attributes for JMP

Hi guys, currently I write python to run the jsl code by using RunCommand like below:

import win32com
jmp = win32com.client.Dispatch("JMP.Application")
jmp.RunCommand('SHOW("Hi");')
print(jmp.GetLogContents)

I am wondering if there any docs or records that I can read to find other COM attributes for JMP like OpenDoucument, CreateOneWay

I tried searching but few info was found. thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: COM attributes for JMP

3 REPLIES 3
jthi
Super User

Re: COM attributes for JMP

Clanlope
Level III

Re: COM attributes for JMP

Thanks! that is exactly what I need

Re: COM attributes for JMP

Just one big caveat here.  By launching JMP via COM from another Python process, you are not directly able to take advantage of the import jmp or any of the new functionality built into JMP 18 and JMP 19.  

Though if your JSL scripts call Python Submit() or Python Execute(), then your Python launching JMP to run JSL could wind up calling the Python within JMP... which could well be different than the Python you are executing from...

Sounds like you are driving JMP via external process through COM.  

Recommended Articles