<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><span class="Apple-tab-span" style="white-space:pre">   </span>I'm trying to write an applescript to automate data import of some files with a big header, and I noticed in the pro Fit applescript dictionary a data import option headerLines, which I figured could be used to chop off this stuff and get to what I need. It doesn't work, though, with various combinations.  What am I doing something wrong?<br>
<br></div><div>Here's an example of what I'm trying to do. If it does import, it doesn't cut off the header.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; color: rgb(73, 143, 42); "><span style="color: #000000"><b>on</b> </span>parseStuffIn<span style="color: #000000">(</span>theFile<span style="color: #000000">)</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; text-indent: -83.2px; font: normal normal normal 12px/normal Verdana; "><span class="Apple-tab-span" style="white-space:pre">   </span><b>tell</b> <span style="color: #053df5"><i>application</i></span> "pro Fit 6.2.3"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; text-indent: -124.9px; font: normal normal normal 12px/normal Verdana; color: rgb(5, 61, 245); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">              </span></span><b>activate</b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; text-indent: -124.9px; font: normal normal normal 12px/normal Verdana; color: rgb(94, 97, 97); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span><span style="color: #053df5"><b>data import options</b></span><span style="color: #000000"> </span><span style="color: #053df5">mode</span><span style="color: #000000"> </span><span style="color: #5f348c">custom</span><span style="color: #000000"> </span>-- or withTitles or withoutTitles</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; text-indent: -124.9px; font: normal normal normal 12px/normal Verdana; color: rgb(5, 61, 245); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">           </span></span><b>data import options</b><span style="color: #000000"> </span>headerLines<span style="color: #000000"> 93</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; text-indent: -124.9px; font: normal normal normal 12px/normal Verdana; "><span class="Apple-tab-span" style="white-space:pre">               </span><span style="color: #053df5"><b>open</b></span> <span style="color: #498f2a">theFile</span> <b>with</b> «<span style="color: #053df5"><i>class</i></span> impo» <b>given</b> «<span style="color: #053df5"><i>class</i></span> as  »:<span style="color: #5f348c">data window</span></div></div><div><span style="color: #5f348c"><br></span></div><div><span style="color: #5f348c"><br></span></div><div><span style="color: #5f348c"><div style="color: rgb(0, 0, 0); ">Thanks for any and all. </div><div style="color: rgb(0, 0, 0); "><br></div><div style="color: rgb(0, 0, 0); ">Dave</div><div style="color: rgb(0, 0, 0); "><br></div></span></div></body></html>