|
The rest of this page was written when LilyPond did not run as a native application under Leopard or Snow Leopard. Some people, however, still prefer to use their own text editor of choice to edit the .ly files. This page is kept as a reference for other ways to do this under Mac OS Leopard and Snow Leopard. |
| all users | intermediate level | experienced users | ||
| with Smultron (easiest) | with TeXShop (easy) | with jEdit & LilyPondTool (easy) | with Terminal (experience with Terminal recommended) | Build LilyPond yourself |
#!/bin/sh
/usr/bin/touch %%d -m %%p
/Applications/LilyPond.app/Contents/Resources/bin/lilypond -dno-point-and-click -ddelete-intermediate-files -o %%d %%p
/usr/bin/find %%d -newer %%p -name '*.pdf' -exec open {} \;
/usr/bin/find %%d -newer %%p -name '*.midi' -exec open {} \;
This command will compile the LilyPond file and open both the pdf and the midi, if they are newer than your LilyPond file.-dno-point-and-click can be left out to enable the point-and-click feature, but this yields much larger pdf files./Applications/LilyPond.app/Contents/Resources/bin/convert-ly -e %%d/ %%p
#!/bin/sh
/usr/bin/touch %%d -m %%p
/Applications/LilyPond.app/Contents/Resources/bin/lilypond -dno-point-and-click -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts -dresolution=400 --png -o %%d %%p
/usr/bin/find %%d -newer %%p -name '*.count' -exec rm {} \;
/usr/bin/find %%d -newer %%p -name '*.eps' -exec rm {} \;
/usr/bin/find %%d -newer %%p -name '*.tex' -exec rm {} \;
/usr/bin/find %%d -newer %%p -name '*.texi' -exec rm {} \;
#!/bin/bash
export PATH=$PATH:/Applications/LilyPond.app/Contents/Resources/bin
lilypond --pdf "$1"
#!/bin/tcsh
set path = ($path /Applications/LilyPond.app/Contents/Resources/bin)
lilypond --pdf "$1"
chmod +x/opt/local to your PATH. The easiest way to do this is to run echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile
sudo port install lilypond