lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running Lilypond from Fraise


From: Steve Burgondy
Subject: Running Lilypond from Fraise
Date: Sat, 13 Jul 2013 23:44:09 +0200

Hello,

It is possible to run shell commands directly from Fraise, instead of typing 
them in a Terminal. 

For this, go to the Tools Menu and create a new command. 
Add the following code (for example):


#!/bin/sh

# Set directory
cd %%d

# Run Lilypond
/Applications/LilyPond.app/Contents/Resources/bin/lilypond %%p

# Open the pdf in viewer
file=%%p
pdf=${file%%.ly}.pdf
open $pdf





Remarks: 
- In Fraise, %%d is the directory and %%p is the full path to your file
- The "pdf=${file%%.ly}.pdf" line takes off the ".ly" extension and replaces it 
by ".pdf"
- In the window, do not check the "Inline" checkbox.
- You can now run the command from the Tools Menu. You can also set a keyboard 
shortcut for this command if you like.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]