When I'm on a Mac I use the Smultron editor, which has pretty nice syntax highlighting and has a very nice interface. It's free also. I got JEdit to work but I think it looks terrible both on Linux and Mac. The fonts look all messed up probably because of the Java environment.

Anyway I wrote a script for use on my Linux boxes and have a modified version for Macs. It runs lilypond on a given file and opens the pdf in Preview (easy enough to change it to Acrobat Reader if you like). I'll attach the script in case anyone would like to have it. Create a /bin directory in your home directory and make sure it's included in your shell path. Once it's there and the file is executable, you simply type "lily foobar.ly" and it runs lilypond on foobar.ly then opens foobar.pdf in Preview. If you comment out the Preview line and uncomment the Acrobat Reader line then you can use Acrobat Reader for the previewing.

Jon

James E. Bailey wrote:
True, but textedit doesn't have syntax hilighting or bracket matching. Speaking of which, I've been meaning to send my syntax hilighting for lilypond to this list for ages, but haven't done so. It isn't great, nor is perfect, but it hilights and helps me spotting errors. And, the only time I've ever attempted anything with regex was to do this, so I'm sure there are probably better ways of expressing what's here (if anyone sees a better way, let me know). For a pretty basic text editor, it has tons of features that I learn more about as I use it.


You can use textedit to edit your lilypond files on OSX.

Carl


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user


--
Jonathan Kulp
http://www.jonathankulp.com
#!/bin/bash

#*************************************#
# MAC SCRIPT MAC SCRIPT MAC SCRIPT    # 
#                                     #
# Script to run lilypond on specified #
# file and open in Acrobat Reader     #
#*************************************#

# gets complete filename of file 
srcfile="`eval echo $1`"        

# gets the filename without .ly
FILENOEXTENSION="`echo $srcfile | sed -e 's/\..*$//'`"  

# runs lilypond on specified file #
/Applications/LilyPond.app/Contents/Resources/bin/lilypond $srcfile

#open -a /Applications/Adobe\ Reader\ 8/Adobe\ Reader.app $FILENOEXTENSION.pdf
open -a preview $FILENOEXTENSION.pdf

sleep 2

rm $FILENOEXTENSION.ps
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to