# [OS X TeX] TeXShop and Lilypond

Michael Millett mjmm60 at excite.com
Sat Apr 21 22:00:04 EDT 2007

I have completed the immediate project using Word, unfortunately, and
now again have some time to attempt getting TeXShop and Lilypond working
together on my system. I kindly request any ideas for solutions that you
have.

My only guesses for why this isn't working are:

1. There is something wrong with one of the paths.
2.  There is something wrong with the engine as I have it.
3. Lilypond - Book is for some reason not being found. I am running LP
version 2.8.4. I am only guessing that Lilypond - Book is somehow a part
of this equation.

set LILYPONDFOLDER = /Desktop
set path = ($path$LILYPONDFOLDER/LilyPond.app/Contents/Resources/bin/)

This is because I have Lilypond located on my Desktop.

I don't quite understand the "set path" part. Is this pointing to parts
of the LP app? Files that are invisible?

According to the Terminal, here is the contents of my Desktop (in part):

[Michael-Milletts-Computer:~/Desktop] michaelm% ls
LilyPond.app
LilyPond.chl
LilyPondFolder

According to the Terminal, here is the contents of the TeXShop engines
folder:

[Michael-Milletts-Computer:~/Library/TeXShop/Engines] michaelm% ls
Lilypond-LaTeX.engine   XeLaTeX.engine          XeTeX.engine

My source file reads as follows:

%%!TEX TS-program = Lilypond-LaTeX

\documentclass [12pt] {report}

\usepackage {times}
\usepackage [dvips] {graphicx}

\begin {document}

\begin {flushright}
Michael J Millett
\end {flushright}

\begin {center}

Brahms: Intermezzo In A Major\\
\emph {Op. 118, No. 2}
\end {center}

\begin {lilypond}

{ c'4 d' e' f' g'2 g'}

\end{lilypond}

\end {document}

And returns the following error message:

/Users/michaelm/Library/TeXShop/Engines/Lilypond-LaTeX.engine failed: 8,
"Exec format error".

I would ask: Is there any way to run a trace on the TeXShop progress to
see exactly where it is hanging up?

Thank you all again for your help. You have been already been most generous.

Michael