[texworks] Open in default viewer question
David J. Perry
hospes.primus at verizon.net
Mon Nov 8 11:24:30 CET 2010
Thanks, Paul. I'll try that tonight when I get home.
David
----- Original Message -----
From: "Paul A Norman" <paul.a.norman at gmail.com>
To: "Discuss the TeXworks front end." <texworks at tug.org>
Sent: Monday, November 08, 2010 12:33 AM
Subject: Re: [texworks] Open in default viewer question
> Hi David,
>
> That Information message box is caused by something that I think a
> patch has been prepared for to stop that happening [DEVL - for pdf
> preview as well?]. It is a relic from the early development of script
> integration.
>
> If I recall correctly at present code 1024 is issued upon a script
> successfully finishing.
>
> That causes an OK message to be sent forward.
>
> If you are willing to edit that script, you can add one simple
> statement to suppress the OK message box in the meanwhile. This would
> work for any other script that happens in as well.
>
> A)
>>From your main TexWorks menu in the previewer, choose:
>
> Menu://Scripts/Scripting TeXWorks/Manage Scripts
>
> In the list that opens up double click on "Open in default viewer"
>
> This should launch your default .js editor. If that does not happen
> use the ...
>
> OR - B)
>>From your main TexWorks menu in the previewer, choose:
>
> Menu://Scripts/Scripting TeXWorks/Show Scripts Folder
>
> Then right click on launchPdf.js and chose an edit programme
> or just open it in a simple text editor (preferably not a
> word-processor - if you do make sure you save it as plain text.)
>
> After EITHER A or B)
>
> Below all the other writing, add a line and just type one of these
> two statements:
>
> undefined;
>
> or type
>
> null;
>
> Save the text and close.
>
> Next time you run the script "Open in default viewer" in your normal
> way, it should not trouble you with that OK message box again.
>
> Paul
>
>
> On 8 November 2010 16:16, David J. Perry <hospes.primus at verizon.net>
> wrote:
>> I recently upgraded to MiKTeX 2.9 and am now using the version of
>> TeXworks
>> (.670) that comes with the distribution. The ability to print and the
>> script to display the PDF in the default viewer are both big timesavers
>> for
>> me--thanks to everybody involved.
>>
>> One question: when I choose Scripts/Open in default viewer from the PDF
>> window in TeXworks, a little box with an an "i" icon and the word "true"
>> pops up, and I have to get rid of it by clicking OK. Is this normal
>> behavior? If so, is it really necessary or could it be gotten rid of in a
>> future version? I'm using Vista (32-bit) with SP2.
>>
>> Thanks - David
>>
>
More information about the texworks
mailing list