Hi,<div><br></div><div>Here is something that appears to have recently developed.</div><div><br></div><div>I sat at a colleague's workstation setting up TeXworks for him, and some of the scripts I gave him would not work.</div>
<div><br></div><div>Error message in Status bar suggested that the Qt supplied global __FILE__ did not exist.</div><div><br></div><div>Turned debugger on and everything worked with no errors.</div><div><br></div><div>Turned Debugger off, and script fails.</div>
<div><br></div><div>Seems any script locating the script's directory through __FILE__ no longer works when the Debugger is off (eg .ui(s)). I don;t know when this started but I am reasonably sure I have not had this happen at all before now. I can not say what version of TW I last successfully  ran __FILE__ with Debugger off I am sorry.</div>
<div><br></div><div>Is this a new Qt  4.7.3  feature (hmm), or something I should put on Tw issues? </div><div><br></div><div>If it is (Qt) permanent, can I please request an global scope property be added to scripting giving the script's full path and file name?</div>
<div><br></div><div>Paul</div><div><br></div><div><p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">//TeXworksScript</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">//Title:  Experimental TW</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">//Description: Exploration of TW objects</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">//Author:  Paul A. Norman</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">//Version: 0.9</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">//Date:  2010-11-04</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">//Script-Type: standalone</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">//Context: TeXDocument</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">//Shortcut: Alt+T, Alt+W</p><p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><br></p></div><div>              TW.information(null, "Check __FILE__", "Debugger on and off, script name: \n" +  __FILE__);       </div>
<div><br></div><div>    ----- configuration info -----</div>TeXworks version : 0.5r950 
(official)<br>Install location : 
G:/latexportable/LaTexUtils/TeXWorks/texworks/TeXworks.exe<br>Library path     : 
G:/latexportable/LaTexUtils/TeXWorks/texworks/config\<br>pdfTeX location  : 
G:/LaTeXPortable/LatexUtils/MikTex2.9.3927-Portable/miktex/bin/pdftex.exe<br>Operating 
system : Windows XP Professional Service Pack 3<br>Qt4 version      : 4.7.3 
(build) / 4.7.3 (runtime)<br>------------------------------<br>