<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 15, 2009, at 4:11 AM, Ludovic Pecqueur wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">
Dear all, <br>
<br>
I am using the batch Processing script but I am encountering a problem
due to a type mismatch.<br>
I want to fit several files, then report in a table all the wanted
parameters as well as which original data they correspond to (ie name
of the table). To do that, I first use the Batch Processing Applescript
which calls my program "SingleFit" (see below).<br>
<br>
The error comes from the line :<br>
<b> data[globalData[0],1] := WindowName;<br>
</b>Where I suspect the program wants a real number instead of a string.<br>
I tried to define the first column as a string with:<br>
SetColumnProperties(col 1, name 'Exp', type textColumn);)<br>
but it did not do the trick.<br>
<br>
Is there any way to declare <b> data[globalData[0],1]&nbsp; </b>as a
string in the applescript or in the program itself?<br>
<br>
Thank you for your help,<br>
<br>
Ludovic<br></div></blockquote><div><br></div><div><br></div><div><br></div><div>Try &nbsp;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>SetCell(globalData[0],1,WindowName)....</div><div><br></div><div><br></div></div><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>&nbsp; &nbsp;&nbsp; &nbsp;Davide</div><div>--</div><div>Davide Guarisco</div></span></span></span></span></div></body></html>