[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: point and click implementation
From: |
Eluze |
Subject: |
Re: point and click implementation |
Date: |
Wed, 10 Apr 2013 15:54:28 -0700 (PDT) |
ArnoldTheresius wrote
>
> Eluze wrote
>> ...
>> the question is
>>
>> how do we get the default .ly editor from the registry and if there is
>> one how do we get its (the editors) specification for line- and
>> column-number specification - probably this has to go through a table
>> (created and maintained by LilyPond) with the fields
>>
>> ...
>>
>> Eluze
> Usually in the registry:
>
> Computer\HKEY_CLASSES_ROOT\
*
> .ly
*
> : (Standard) [REG_SZ] = "
*
> ly_auto_file
*
> "
> ... then look at ...
> Computer\HKEY_CLASSES_ROOT\
*
> ly_auto_file
*
> \shell\edit\command ...
thanks for this hint - so with this little .bat file we could find the
default editor for .ly files
@echo off
SETLOCAL enableExtensions enableDelayedExpansion
FOR /f "tokens=1*" %%a in ('REG QUERY HKCR\ly_auto_file\shell\open\command
') do (
CALL :xx editor %%b
IF NOT [!editor!]==[] SET editor=!editor!
)
ECHO(&ECHO the LilyPond editor is: %editor%
GOTO :eof
:xx
IF NOT [%3]==[] SET %~1=%3
GOTO :eof
next step would be matching this information with a table of editors and
their parameters …
Eluze
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/point-and-click-implementation-tp144248p144302.html
Sent from the Bugs mailing list archive at Nabble.com.
- point and click implementation, Eluze, 2013/04/09
- Re: point and click implementation, ArnoldTheresius, 2013/04/10
- Re: point and click implementation,
Eluze <=
- Re: point and click implementation, ArnoldTheresius, 2013/04/11
- Re: point and click implementation, Eluze, 2013/04/11
- Re: point and click implementation, Phil Holmes, 2013/04/11
- Re: point and click implementation, Eluze, 2013/04/11
- Re: point and click implementation, ArnoldTheresius, 2013/04/11
- Re: point and click implementation, Phil Holmes, 2013/04/12
- Re: point and click implementation, Phil Holmes, 2013/04/14
- Re: point and click implementation, David Kastrup, 2013/04/14
- Re: point and click implementation, Phil Holmes, 2013/04/14
- Re: point and click implementation, Janek Warchoł, 2013/04/14