Unfortunately, and unexpectedly, Preview is not really scriptable.
Just about the only thing you can do with applescript is to make it
quit; one way to do that in a shell script is:
osascript -e 'tell app "Preview" to quit'
Another initially confusing thing with Lilypond.app on Mac OS X is,
it typesets the file stored on disk, not what you have in the editor
window, so you have to remember to save the file first. But that's
not a big deal for me as I prefer to run the command-line lilypond in
a terminal window anyway.
-Jukka
On Sep 6, 2005, at 5:36 AM, Hans Aberg wrote:
On 6 Sep 2005, at 01:35, Han-Wen Nienhuys wrote:
One could in principle close the PDF files using AppleScript
commands, but I do not know how to do it, or if Preview supports it.
Preview is a standard MacOS app made by Apple themselves, so it
would be *very* strange if it didn't support it.
I think I know roughly how to do it: First run the AppleScript
program and close a file in Preview, to see what it writes. Then I
think that AppleScript can be embedded in a shell script; I think I
saw it once, but I do not remember how.
Hans Aberg
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond