#!/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