My way of doing this would be to first add a global Leo variable to specify 
the LeoFile I want to open, then the node name I want to execute (actually 
It would be cool if we could also specify the tags of the node, just in 
case there are several with same name, etc).
Then make a open-the-workbook hook on the "workbook.leo" file which will 
execute the pointed node if the variables pointing it exists in the 
database (if they dont, you are just using the "workbook.leo" with other 
purpose than executing that script)

Anyway, the general purpose of all my work in leo is towards automation, so 
I will provide better solutions for this in the _hopefully_ near future.
HTH ^^


On Wednesday, June 12, 2013 9:55:02 AM UTC+2, Matt Wilkie wrote:
>
> Is it possible to have leo execute the code in a specific node or tree 
> of nodes from the command line and then exit? e.g. 
>
>    leo --script=workbook.leo--scripts--cool-thing-1 
>
> where Workbook.leo looks like: 
>
> workbook.leo: 
>   \-- Docs 
>   \-- Research 
>   \-- Scripts 
>       \-- cool thing 1 
>       \-- cool thing 2 
>
> and the result of the command line would be the same as interactively 
> opening workbook.leo, navigating to 'cool thing 1' node and pressing 
> [Ctrl-B]? 
>

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to