Nevermind.  Setting the filename was right in front of my nose in
newLeoCommanderAndFrame(fileName=

So the working script is

import leo.core.leoGui as leoGui

## Create and save an empty leo outline
fn2='test2.leo'
nullGui = leoGui.nullGui("nullGui")
c2,frame = g.app.newLeoCommanderAndFrame(fileName=fn2,gui=nullGui)
c2.save()

## Open the new leo outline file to see it
ok, newframe = g.openWithFileName(fn2,c)

## Extra
c3 = newframe.c
p1=c3.rootPosition()
p1.h='Top Node ***'
c3.redraw()

But I imagine there is an easier way and it would be good to know if
there is a version of c.saveAs() that accepts a newfilename

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to