New document handling: b.doc() accepts now also a path (string) and tries to open that document. The path is relative to the users home/admin/My Files folder.
New document handling: b.doc() accepts now also a path (string) and tries to open that document. The path is relative to the users home/admin/My Files folder.

In order to make this useable… currentDoc no longer creates a new document when called but throws an error if no document is available. Right now you would always get a new document in addition to the one you opened. 
Also runSetup, runDraw, loop and go don't call currentDoc anymore..
 So now only b.doc() creates new documents. -> b.doc() has to be called in each script.

greenish/basil.js