Well, that was quick
I only had to change one binding, from what I saw.
Update to latest revision (at least 1775).
Create a file, say "test.script".
Paste the following in it:
int main()
{
// adjust the path to one of your projects
Project@ prj = ProjectManager.LoadProject("C:/Devel/glfw/glfwapp.cbp", true);
ShowMessage("Project loaded :)");
ProjectManager.CloseProject(prj);
// or
// ProjectManager.CloseActiveProject();
ShowMessage("Project closed :)\nBye.");
return 0;
}
Choose "File->Run script".
Select your script
I 'll document the already exposed classes, maybe tonight, so you can play some more with it.
The bindings are in sdk/as/scriptbindings.cpp, if you want to take a look yourself