bug-lilypond
[Top][All Lists]
Advanced

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

Re: Always need to restart Preview on OS X


From: Jukka Akkanen
Subject: Re: Always need to restart Preview on OS X
Date: Tue, 6 Sep 2005 12:45:15 -0400

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
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypond






reply via email to

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