guide.pdf core.saveOutputAs

9 views
Skip to first unread message

Paul Gilmartin

unread,
Jun 19, 2026, 12:42:39 PM (3 days ago) Jun 19
to Stellarium
[     0.376][INFO] [ This is Stellarium 26.1 (v26.1.0) - https://stellarium.org/ ]
[     0.377][INFO] Operating System: macOS Sequoia (15.7.7)

In the example in guide.pdf:
17.4 Minimal Scripts
    ...
core.saveOutputAs(" myImportantData .txt");

The filename starts with a blank.  That confused
my bad eyes when I copied/pasted the line into
a script.  It would be better to remove the blank.

It seems that if I do not code core.saveOutputAs()
output.txt is created as an empty file.
are the core.output() data simply lost?

--
Thanks,
gil

Georg Zotti

unread,
Jun 19, 2026, 4:24:02 PM (3 days ago) Jun 19
to Stellarium
The blanks are caused by PDF internals. We can do nothing about that.

core.output(myResults) writes into output.txt. The file is probably created by each script run. To save the data, call call.saveOutputAs("myFile.txt").
Reply all
Reply to author
Forward
0 new messages