Am 2008-05-18 um 12:16 schrieb Hans Aberg:
On UNIX, like OS X, one can run the command
  lilypond foo.ly && mv foo.midi foo.mid
Easy to repeat - on OS X, use the up arrow key. Or write a script or alias.

This is my lily.sh script for OSX:

"""
#!/bin/bash
if [ -e $1.pdf ]; then
        rm $1.pdf
fi
lilypond $1.ly
if [ -e $1.pdf ]; then
        growlnotify -n LilyPond -a LilyPond -d Info -t "LilyPond" -m "$1 ready"
        if [ -e $1.midi ]; then
                rm $1.mid
                mv $1.midi $1.mid
        fi
        rm $1.ps
        open $1.pdf
        open $1.mid
else
growlnotify -n LilyPond -a LilyPond -d Error -t "LilyPond" -m "$1 failed"
fi
"""

"lily.sh myname"...
- deletes previous myname.pdf
- runs lilypond myname.ly
- deletes old mylily.mid and renames myname.midi to myname.mid
- deletes myname.ps
- opens MIDI and PDF

"growlnotify" (see http://growl.info) shows a popup message.

I've "alias lily='path/to/lily.sh'" in my .profile, so I can run "lily" as command.


Greetlings from Lake Constance
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)




_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to