> is there a flag to tell the program to open the compiled PDF when it's
> finished like the GUI program does?
>
> Oops this is actually superfluous because the preview app on Mac OS X
> updates with any changes as soon as I click on it, so just leaving the pdf
> open when compiling works no problem. (I'm a newb)
>
> .mjb
If I am working on parts, I tend to like to open each one in its own Preview window, since I find it easier to close down the ones I don't need, and can switch between them easier.
So, I use the following for loop:
for file in *.pdf ; do open -a Preview $file ; done
I also like to clean up the previous versions of the pdf files before compiling
rm *.pdf
So, my one-line command line for cleanup, compile and open (assuming my lilypond file is source.ly) is:
rm *.pdf ; lilypond source.ly ; for file in *.pdf ; do open -a Preview $file ; done
Also, not sure why you enjoy calling lilypond with a fully-qualified path.
You should be able to get it in your path using the instructions at