On Wed, Jul 02, 2008 at 12:44:08PM -0500, Eric Knapp wrote: > > Next I'm trying to get Point and Click to open the editor of my > choice. I'm using Apple's Preview application to see the PDF documents > with the embedded hyperlinks. I want to open TextMate which has a > command line utility. So far I have tried to set the LYEDITOR > environment variable but it's not working yet. When clicking on a > hyperlink in a PDF document, the graphic PPC version of Lilypond.app > is launched. > > Has anyone gotten this to work on OS X? Is this the right place to ask > this or should I be on a dev list? >
LYEDITOR is irrelevant for OS X. All the work is done by the Apple UTIs http://developer.apple.com/documentation/Carbon/Conceptual/understanding_utis/understand_utis_intro/chapter_1_section_1.html if you really want to know. So... Trash the PPC application then install the two Platypus wrapped scripts I've dumped here: http://claviclaws.net/LilyPond/LPHelper.zip The lilypond-invoke-emacs app obviously invokes emacs when a hyperlink is clicked, not TextMate, but the wrapped Applescript could easily be altered to invoke TextMate instead. The ql-helper app allows one to use QuickLook with lilypond files; I think I've set the recognized filename extensions to .ly and .lily, but editing the info.plist will quickly allow you to add more. I also use QLcolorcode http://code.google.com/p/qlcolorcode/ to colourize QuickLook. You'll need to add a LilyPond language definition to Contents/Resources/override/langDefs and add it to the info.plist file. You can get the language definitions from the Highlight source package: http://www.andre-simon.de/index.html Sorry it's a brief write up - I'm a bit rushed now. If you want more details (tomorrow at earliest), let me know. Christopher _______________________________________________ lilypond-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-user
