> From: Matthew James Briggs <[email protected]>
> Subject: Command Line call to LilyPond with PDF auto open
>
> When calling LilyPond from the command line (I'm on Mac OS X) like this
>
> exec /Applications/LilyPond.app/Contents/Resources/bin/lilypond "
pathtomy.ly"
>
> 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
http://www.lilypond.org/macos-x.html
HTH,
David Elaine Alt
415 . 341 .4954 "*Confusion is
highly underrated*"
[email protected]
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user