[texworks] Scripting: .newFile return a scriptable object?

Stefan Löffler st.loeffler at gmail.com
Mon Jun 7 20:13:26 CEST 2010


Hi,

Am 2010-06-07 13:00, schrieb Paul A Norman:
> Does TW.app.newFile() or TW.target.newFile() return a scriptable object?
>   

No, it doesn't. It doesn't return anything, in fact (it's defined as
void, as are most slots).

> I can not reference / use it in Script, but the window is opened.
>   

It is designed to do just that: open a new window, typically as response
to the user specifying, e.g., "File -> New". There was no need for a
return value (until now).

HTH
Stefan


More information about the texworks mailing list