lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command Line call to LilyPond with PDF auto open


From: Flaming Hakama by Elaine
Subject: Re: Command Line call to LilyPond with PDF auto open
Date: Sun, 25 Jan 2015 22:40:13 -0800

> From: Matthew James Briggs <address@hidden>
> 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



HTH,

David Elaine Alt
415 . 341 .4954                                           "Confusion is highly underrated"
address@hidden
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

reply via email to

[Prev in Thread] Current Thread [Next in Thread]