[texworks] ver 567 Script Menu scripts present but not working

Jonathan Kew jfkthame at googlemail.com
Sun Mar 14 02:35:22 CET 2010

On 14 Mar 2010, at 01:23, Paul A Norman wrote:

> Dear Jonathan / Stefan,
> I have upgraded/  installed ver 567 for Windows.
> My scripts (lua at moment) show on the Script menu, but nothing
> happens when I invoke them.
> The script manager shows them with a checked check box beside each one.
> They all worked under the 300 series release.
> Not even the standard issue Make Bold script works.
> Looked through the wiki, and did a search here but must have missed something.
> I remember previously reading something about the script object
> changing but I can not find that post again, does that apply?
> Any help appreciated please.
> Paul

You probably need to update your scripts to the new scripting APIs... what used to be "target" and "app" (or "TWTarget" and "TWApp" in Lua, or just "TW" for the "target" in the earliest Lua implementation) are now "TW.target" and "TW.app" for all languages, and scripts that want to return a result should assign it to "TW.result".

Most of this was discussed in various comments on issue #27, IIRC.

(If you remove the entire scripts folder, texworks will recreate it with new copies of the sample scripts, which you can use as a guide to the changes for your own scripts.)

Hmmm, we need to update the Scripting wiki page........


More information about the texworks mailing list