Sending data to Quarto via runCommand()

Dear Dr.Mark Anderson,
Thank you very much for your guidance in detail the other day.

How to compile using runCommand ?
Coincidentally, [Call Apple Script from a Stamp] on Tinderbox Forum
[Call Apple Script from a Stamp]
After reading this post,
I learned that this runCommand “Osscript” can be applied to quarto preview.
Thank you Mr.Michael Becker for your article.
I decided to call the simple quarto-compile.scpt below with runCommand.

tell application “Terminal”
activate
set currentTab to do script “cd ~/Tinderbox2023/quartoTest”
do script “quarto preview note.qmd” in currentTab
delay 0.3
end tell

#01: Created Tinderbox file note.qmd

#02: Execute “run quarto” on Stamp

At this time, it is a prerequisite that the terminal is not started.
(Note)
This procedure is different from the method previously proposed by Mr. Takeshi Otsuka.
avoid! “2.Run quarto preview note.qmd in a terminal application.”

#03: A window (separate from the normal window) opens in Terminal and compilation begins.

#04: PDF files are displayed as viewer.html in Browse.

Sincerely,WAKAMATSU
P.S
Everything is working fine.

3 Likes