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

Paul A Norman paul.a.norman at gmail.com
Sun Mar 14 02:39:44 CET 2010


Thanks for that Jonathan,

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

Yes I went there first to try and not waste any one's time on the list.

Paul

On 14 March 2010 14:35, Jonathan Kew <jfkthame at googlemail.com> wrote:
> 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........
>
> JK
>
>
>



More information about the texworks mailing list