lilypond-devel
[Top][All Lists]
Advanced

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

documentation/feature: 4.1 Point and click (MacOS)


From: Stefan Vollmar
Subject: documentation/feature: 4.1 Point and click (MacOS)
Date: Mon, 04 Oct 2010 09:17:26 +0200

Dear all,

when using the current Lilypond.app (2.13.35-1 and the stable one), 
Point-and-Click will work out-of-the-box for the Mac - nice. But there is no 
recipe on what to do if you prefer not to use the builtin text editor.

However, there is a solution for the Mac: distributed with lyqi by Nicolas 
Sceaux is EmacsPointAndClick.app - but this needs to be modified to work on 
Snow Leopard. Please find attached my correspondence with him. -

But I think there is a much better way: as Lilypond.app already handles the 
"textedit"-type URIs it should be possible for advanced users on the Mac to set 
LYEDITOR and, if set, Lilypond could then provide the functionality of the 
EmacsPointAndClick-AppleScript in a more general fashion, replacing the "do 
shell script" line with whatever is specified in LYEDITOR. 

Point-and-Click is a great feature of a great application. Thank you for 
Lilypond!

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: address@hidden   http://www.nf.mpg.de

> From: Stefan Vollmar <address@hidden>
> Date: 2. Oktober 2010 15:44:57 MESZ
> To: address@hidden
> Cc: Stefan Vollmar <address@hidden>
> Subject: EmacsPointAndClick: adaptions for Snow Leopard
> 
> Dear Mr Sceaux,
> 
> many thanks for your lyqi project. I am a new Lilypond but an old Emacs user 
> and was looking for ways to adopt my Emacs environment (Aquamacs on the Mac) 
> to using Lilypond.
> 
> It turns out, that I was able to come up with a minimal Mac-specific 
> commandline tool capturing output from a MIDI keyboard which I can now insert 
> in Aquamacs with Hans Lub's midi-input mode.
> 
> From you project, I currently use EmacsPointAndClick. However, I did not work 
> immediately on my Snow Leopard (10.6.4) system and this is probably due to 
> the changes Apple introduced from Leopard to Snow Leopard: I needed to
> 
> (1) add this string to Info.plist
> 
>       <key>CFBundleURLTypes</key>
>       <array>
>               <dict>
>                       <key>CFBundleTypeRole</key>
>                       <string>Editor</string>
>                       <key>CFBundleURLName</key>
>                       <string>text editor via url</string>
>                       <key>CFBundleURLSchemes</key>
>                       <array>
>                               <string>textedit</string>
>                       </array>
>                       <key>NSDocumentClass</key>
>                       <string>TinyTinyDocument</string>
>               </dict>
>       </array>
> 
> (2) Move Lilypond from /Applications to somewhere else. 
> 
> (3) rename the corresponding part in Lilypond's Info.plist from 
> <string>textedit</string> to something different.
> 
> (4) Copy Lilypond.app back to /Applications.
> 
> (5) Copy EmacsPointAndClick to /Applications
> 
> (6) changed the laucn emacsclient part in the script to: 
> /Applications/Aquamacs.app/Contents/MacOS/bin/emacsclient
> 
> I am not particularly fond of moving .app-Dirs from and to /Applications, but 
> it seems to me the most pragmatic way to register URI handlers with MacOS X.
> 
> I have come up with a little Emacs "distribution" (only a few icons and a 
> little lisp code and an installer, not a "distribution" in the usual sense) 
> we needed for a teaching project, 
> http://www.nf.mpg.de/kinderuni/kinderuni_en.html. It crossed my mind, that I 
> could do something similar for Lilypond (at least for the Mac; this might 
> later also work on Linux and on Windows), all OpenSource.
> 
> Would you mind if I used your code (EmacsPointAndClick) for this little 
> project (with proper acknowledgements, of course)?
> 
> Yours sincerely,
> Stefan Vollmar
> -- 
> Dr. Stefan Vollmar, Dipl.-Phys.
> Head of IT group
> Max-Planck-Institut für neurologische Forschung
> Gleuelerstr. 50, 50931 Köln, Germany
> Tel.: +49-221-4726-213  FAX +49-221-4726-298
> Tel.: +49-221-478-5713  Mobile: 0160-93874279
> Email: address@hidden   http://www.nf.mpg.de


> Le 2 oct. 2010 à 15:44, Stefan Vollmar a écrit :
>> 
>> Would you mind if I used your code (EmacsPointAndClick) for this little 
>> project (with proper acknowledgements, of course)?
> 
> Please do so!  I /think/ that I got most of it from an example somewhere,
> so I do not claim patternity for it.
> 
> I'm using Snow Leopard too, and to make point and click work, I 
> manually associate the textedit protocol to EmacsPointAndClick
> in systm preferences.
> Your trick seems much better, thanks for sharing.  As I don't
> use LilyPond.app, I won't even have to deal with LilyPond's
> Info.plist.
> 
> Nicolas

> From: Nicolas Sceaux <address@hidden>
> Date: 2. Oktober 2010 18:38:15 MESZ
> To: Stefan Vollmar <address@hidden>
> Subject: Re: EmacsPointAndClick: adaptions for Snow Leopard
> 
> Le 2 oct. 2010 à 18:23, Stefan Vollmar a écrit :
> 
>> http://www.mail-archive.com/address@hidden/msg38070.html 
>> suggests it might have been Carl Sorensen or Christopher Suckling?
> 
> It was probably from Christopher Suckling.
> 
>>> I'm using Snow Leopard too, and to make point and click work, I 
>>> manually associate the textedit protocol to EmacsPointAndClick
>>> in systm preferences.
>> 
>> Great, another solution - I completely forgot about the "Default Apps" 
>> module, I assume this is what you use?
> 
> Yes, an add-on called RCDefaultApp.
> 
>> You build from the sources or use MacPorts?
> 
> I used to contribute to the project, so I'm building from git.
> Last time I've contributed is ages ago, however.
> 
> Nicolas




Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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