cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • Use JMP Clinical with CDISC-compliant data. Review studies, ID safety and efficacy signals & communicate findings with interactive graphics. Register to see how. Aug. 27, 2 pm US ET.

Discussions

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

Help with Run Program

I want to run PanDoc on a markdown file using JMP's Run Program command.  I am on MacOS.  I have looked at the scripting guide and the Scripting Index, but I cannot seem to get the correct syntax.  

 

On my system PanDoc is installed at

/opt/homebrew/Cellar/pandoc/3.7.0.2/bin/pandoc

 

the command line to use pandoc would be this

 

pandoc <path>/markdown.md -f markdown -o <path>/markdown.html

 

I tried this and will not work.  Note that <path> is the path to the files, I did not include that here.  

 

Run Program(
   Executable("/opt/homebrew/Cellar/pandoc/3.7.0.2/bin/pandoc"),
   Options(
{
"<path>/markdown.md -f markdown -o <path>/markdown.html"
}
) )

Any idea on how I can get this to work?

1 ACCEPTED SOLUTION

Accepted Solutions
MathStatChem
Level VII

Re: Help with Run Program

Nevermind, I figured it out.  You have to separate the options string in to pieces... this works

 

Run Program(
   Executable("/opt/homebrew/Cellar/pandoc/3.7.0.2/bin/pandoc"),
   Options({"<path>/markdown.md", "-f", "markdown", "-o",  "<path>/markdown.html"})
)

View solution in original post

3 REPLIES 3
MathStatChem
Level VII

Re: Help with Run Program

Nevermind, I figured it out.  You have to separate the options string in to pieces... this works

 

Run Program(
   Executable("/opt/homebrew/Cellar/pandoc/3.7.0.2/bin/pandoc"),
   Options({"<path>/markdown.md", "-f", "markdown", "-o",  "<path>/markdown.html"})
)
Craige_Hales
Super User

Re: Help with Run Program

Mac does require the parameters split. Win works either way.
Craige
MathStatChem
Level VII

Re: Help with Run Program

That is good to know.  Thanks. 

Recommended Articles