[ 0.435][INFO] [ This is Stellarium 26.2 (v26.2.0) -
https://stellarium.org/ ]
...
[ 0.436][INFO] Operating System: macOS Sequoia (15.7.7)
I've written a couple small successful scripts by copying and modifying lines
from distributed scripts. I'm trying to learn more from 17.4 Minimal Scripts.
I copied the following and removed a couple extraneous blanks (Shame o
LaTeχ for valuing kerning over correctness.)
core.output seems to work as described. core.debug writes nothing to log.txt.
Am I doing something wrong?
Many distributed scripts show a summary in Configure->Scripts. The "minimal"
example doesn't quite do that. Are the rules and examples available elsewhere?
// ////////////////////////////////
// Name : guide.ssc
// Author : Paul Filmartin
// License : Public Domain
//
// This script prints “Hello Universe” in the Script Console log window and into log.txt:
core.debug(" Hello Universe ");
// This script prints “Hello Universe” in the Script Console output window and into the file output.txt which
// you will also find in the user data directory. The absolute path to the file will also be given in log.txt.
core.output(" Hello Universe ");
// The file output.txt will be rewritten on each run of Stellarium. In case you need to save a copy of the
// current output file to another file, call
core.saveOutputAs("myImportantData.txt");
core.resetOutput();
--
Thanks,
gil