[texworks] SCRIPTING: TW.app.applicationVersion

Stefan Löffler st.loeffler at gmail.com
Mon Jan 3 17:28:20 CET 2011


Hi,

On 2011-01-03 01:44, Paul A Norman wrote:
> Continuing to work through the Scripting Api ...

Great :).

>          TW.information(null, "Name of Application",
> TW.app.applicationVersion);
>
> Shows an empty box - as does the Debugger entry for it.
>
> Does any one know please is TW.app.applicationVersion  redundant or
> just not wired up?

It's not wired up, in a sense. This property is provided automatically
by Qt (>= 4.4), but it's never set in the code.
BTW: if you want the "Name of Application", you should use
TW.app.applicationName, which indeed should be set.
To get the version of Tw, you can use TW.app.getVersion(). The return
value is in the form of 0xMMNNPP, with MM=major version, NN=minor
version, PP=bugfix, so at the moment this would return 0x000300. This is
not human-readable (as applicationVersion should be), but much more
useful in scripts for testing the current version.

HTH
Stefan


More information about the texworks mailing list