All of the output goes to your current working directory unless you specify otherwise. So, if you cd ~/Desktop as Graham suggests, then it'll end up there.

If you're interested, you can try this little script I wrote that automatically places all of the output in the same directory as the lilypond file you're running, not the current working directory. (Although I'm usually in the directory where I want stuff to go anyway...) It also automatically opens up the .pdf file so you don't have to do another command to see the output.

If you want to try it, save it in a directory called "bin" in your home directory (if it's not already there, then do "mkdir ~/bin"). Then be sure it's exectutable by doing "chmod +x ~/bin/lily". After that, you type "lily filename.ly" and it'll do the rest.

Jon

George_ wrote:
Hi,

This problem isn't major, as in it doesn't stop me from doing anything
important in Lilypond, but its really annoying nonetheless.

I created a lilypond file on my Desktop, called, say, Test.ly. I go to the
terminal and type in

lilypond --pdf /home/george/Desktop/Test.ly

Then all the normal stuff comes up - processing, drawing, then converting to
pdf and stuff. Except the .pdf and .ps files don't come out on the Desktop.
They come out in the "george" folder. So, is there a way to set the output
folder to something else?

Thanks

George

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

#*************************************#
# 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/\..*$//'`"  

# close current Acrobat Reader window
wmctrl -c "Adobe Reader"

# runs lilypond on specified file #
lilypond $srcfile

acroread $FILENOEXTENSION.pdf &

sleep 2

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

Reply via email to