Leo script to set .leo association (Windows)

2013-04-30 Thread Matt Wilkie
Here is a Leo script which attempts to tell Windows how to handle .leo files, enabling 2x-click "some-workbook.leo" to start. On win7+ it requires Leo be started with elevated admin privileges. {{{ http://www.leo-editor.org/2011/leo"; > assoc leo pyexe = g.sys.executable tmp = g.os.environ

Re: Leo script to set .leo association (Windows)

2013-04-30 Thread Matt Wilkie
whups, sent before ready! to use select and copy text between braces, {{{ }}}, into a Leo outline, select the new node and press Ctrl-B. adapted from http://stackoverflow.com/questions/8985925/how-to-control-what-version-of-python-is-run-when-double-clicking-a-file/ -matt On Tue, Apr 30, 2013

Re: Leo script to set .leo association (Windows)

2013-05-01 Thread Matt Wilkie
...and here's a version that actually works! (previous one just assigned python, and not leo, to the file type). {{{ http://www.leo-editor.org/2011/leo"; > Add Windows handler for .leo files @language python @tabwidth -4 '''Tell Windows how to handle .leo files, enables double clicking on

Re: Leo script to set .leo association (Windows)

2013-05-02 Thread Edward K. Ream
On Wed, May 1, 2013 at 5:23 PM, Matt Wilkie wrote: > ...and here's a version that actually works! (previous one just assigned > python, and not leo, to the file type). > I like the direction we are heading here. Thanks for this work. I'll test it later. EKR -- You received this message beca