Update. If I run
command-sequence buffer-write; buffer-export pdf2; buffer-export pdflatex It sometimes make LyX hang. If I run command-sequence buffer-write; buffer-export pdflatex; buffer-export pdf2 sometimes the pdf export doesn't happen. So, neither quite work. I have a strong feeling it has to do with how long the commands take to run. On my iMac, which has a slow spinning HD, I get more trouble than on my MacBook, which has an SSD.
