Hello,
I would like to process a list of .cts files, let's say, I want to export them all to JSON or whatever.
So far, lobster scripts can process the document that is currently open in TreeSheets. But, as far as I know, the API doesn't allow you to load or manage a document just in memory and process it (I mean, the only TreeSheets datamodel accesible from the API is the current open document).
So, in order to do this batch processing, I suppose the most feasible way would be:
1) load a document in a new tab.
2) switch to that tab.
3) run the script that exports the datamodel to the desired format.
4) repeat for each file.
To do so in a unique script, I would need to develop functions 1) and 2), because they are not available so far in the API.
Does this look like a reasonable approach? Any comments?
Thank you,
Andrés