Script for custom status bar?

The thread you linked to has the answer. :slight_smile:

I want it to be displayed in the status bar. . .

It's not possible, at least currently, but there are other ways you can display information from a script, as the other thread says.