2013/3/31 Terry Brown <[email protected]> > > The question would be, how do people manage to pass parameters to leo > > scripts ? > > I can't answer that with respect to scripts in scripts.leo, but in > general, although it doesn't seem to be something that I need to do > much, when needed, I use > > g.app.gui.runAskDateTimeDialog > g.app.gui.runAskOkCancelNumberDialog > g.app.gui.runAskOkCancelStringDialog > g.app.gui.runAskOkDialog > g.app.gui.runAskYesNoCancelDialog > g.app.gui.runAskYesNoDialog > g.app.gui.runOpenDirectoryDialog > g.app.gui.runOpenFileDialog > g.app.gui.runSaveFileDialog > > all of which prompt the user for some sort of input. > > yay !! I've just used succesfully import .org script substituting the harcoded tuple of strings with a call to g.app.gui.runOpenFileDialog !
I'll ask something possibly very naïve, but which makes me go thinking round and around: when an opened .leo file which has a script which I execute, modifies in someway the leo environment (the "b"? for instance ) , is it global ? I mean a common namespace to all other possible references and modifications that other scripts do along the same session ? If yes, is there a way to make them 'local' to a specific opened .leo file section ? If counterwise, it is local, how's the preferred way to make global changes? They might be either in a common area, or even to "unauthorizedly" changing another .leo's section objects ? thanks again Haroldo -- 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. For more options, visit https://groups.google.com/groups/opt_out.
