On Wed, Jan 21, 2009 at 3:25 PM, rhh <[email protected]> wrote:

>
> Never mind - I found it.  Thanks for the good docs.  For posterity or
> future searchers - here it is:
>
> windows = g.app.windowList # get the list of all open frames.
> g.es("windows...")
> for f in windows:
>    c = f.c # c is f's commander
>    g.es(f)
>    g.es(f.shortFileName())
>    g.es(c)
>    g.es(c.rootPosition())


Hmm.  I'm not sure I understand your answer :-)

Scripts have pre-supplied access to the g, c and p vars.  p is the "path",
that is, the position, of the node containing the script itself.

c.fileName() gives the path to the .leo file containing the script, and
g.app.loadDir is the path to the leo\core folder.

HTH.

Edward

--~--~---------~--~----~------------~-------~--~----~
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