Here is a draft of a new documentation section called "creating Windows
file associations". It is based on careful review of several previous
threads on this topic. Please review it, and post any corrections.
In the past, some emails corrupted various important characters (slashes,
quotes). It it happens here we can review the draft docs online.
QQQQQ
There are two ways of associating .leo files with Leo: with the Windows
control panel or with the Windows console.
===== Method 1: Using the Windows Control Panel.
The goal is to associate .leo files with the following command::
"C:\\Tools\\Python32\\python.exe"
"C:\\Tools\\Leo-4.10-final\\launchLeo.py" --gui=3Dqttabs "%1"
**or**::
myLaunchLeo.bat
where myLaunchLeo.bat contains the command above.
Before Windows 7, you do this with using the Folder Options control panel.
In Windows 7, you do this with the Default Programs control panel.
**Notes** (Matt & Nick):
"%1" passes just the file being clicked on, quoted for spaces etc. In a
batch file %1 passes just the first command line parameter. The brackets
are needed round the %1 to cater for file paths containing spaces.
**Warning:** It is logical to expect ``"%*"`` to work for file associations
just as in batch files. Alas, it does not.
===== Method 2: Using the Windows Console:
Open a Windows console, then type::
ftype LeoFile=C:\Python27\\pythonw.exe C:\\apps\\leo\\launchLeo.py
assoc .leo=LeoFile
And put this leo.bat in %PATH%:
@start /b "Leo" C:\\Python27\\python.exe C:\\apps\\leo\\launchLeo.py %*
QQQQQ
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.