| Gsharp Training Material | Home | Table of Contents |
If you have worked through the Gsharp Tutorial then you have already covered Basic GSL.
With Gsharp you can automatically create GSL so in order to complete this section you only need to know where the Generate GSL option can be found (it's on the Tools menu of the ScriptBuilder).
Now go onto the next section ...
Ok. If you really do want to know more:
You can modify the GSL in the ScriptBuilder, e.g. change titles of file names and then you run the script again from the File Menu
You can save your script using File Save
You can run saved scripts in batch. This means that the script is run without bringing up the interface. Not much point unless you print to a file at the end of the script. To a script in batch use:
Gsharp -batch myscript.gsl
Look at the structure of the GSL that you have created in the ScriptBuilder. You will notice that there are two sorts of commands create and set:
create Object gsharp_1.object.name
( XuNresourceName = value,
XuNresourceName2 = "value2"
);
set gsharp_1.object.name
( XuNresourceName = value,
XuNresourceName2 = "value2"
);
As you can see they almost exactly the same syntax, apart from you must specify the object type for the create function.
Each resource=value pair corresponds to a resource that you have set interactively. If you were to untoggle this resource in the Editor then it would no longer appear when you generate GSL. If you were to use the defaults for all the resources in an object then the create call is simplified to:
create Object gsharp_1.object.name;