> 2009/5/18 Benoît Minisini <gam...@users.sourceforge.net> > > > > Hello all, > > > I have some questions about the scripting language. I need a little > > > help. Question > > > > > > Thanks in advance, and have a nice weekend. > > > > The scripter works by creating a temporary project from your script, by > > compiling it, and by running it. The compiled project is cached so that > > it is > > used immediately if you run the script again. > > > > So: > > > 1- The gbs2 scripter only have access to the gb. internal native class? > > > > No, it can use any component. > > > > > 2- How can I use other components as the gb.XML? > > > > By using the special instruction USE. For example: > > > > USE "gb.xml","gb.xml.rpc" > > > > > 3- Why my scripts dont run directly even when I am including the first > > > line #!/usr/bin/env gbs2? > > > > Two possible reasons: > > > > - The gbs2 symbolic link does not exist. > > > > - It exists, but is not in a directory specified in your PATH environment > > variable. > > > > > 4- How can I pass arguments to the script? > > > > Just pass them: > > > > $ MyScript A B C > > > > Regards, > > > > -- > > Benoît > > > > Hello again, I am trying to run this script base on what you guys suggest > > me, however I received the following error message: > MMain.GenerateFiles.234: This component doesn't exist : "gb.xml" > 0: MMain.GenerateFiles.234 > 1: MMain.MakeVirtualProject.140 > 2: MMain.Main.61 >
Is gb.xml installed on your system? Do you see it in the Gambas IDE? -- Benoît ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user