<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dave <div><br></div><div>Try</div><div><br></div><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; "><b>get</b> <span style="color: #7f38d9">xAxis</span> <b>of</b> <span style="color: #033efc"><i>curves</i></span> 1 <b>of</b> <span style="color: #033efc"><i>shape</i></span> "1"</div></div><div><div><div><br></div><div>Regards</div><div><br></div><div>Kurt Sutter</div><div>QuantumSoft</div><div><br></div><div>On 6. Dec 2010, at 17:12, Dave wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br></div><div>I'm trying to write an applescript that will change the Y1 and Y2 range of a graph.</div><div><br></div><div>I see that a graph is represented by the "shape" class, and I figure if I can get the first curve of that, I can get the axis to which it is associated. An "axis" class has properties "first" and "last" which denote the start and end coordinate of that axis, respectively.</div><div><br></div><div>However, my plan is hitting a snag. I can't seem to get the first curve of a shape:</div><div><br></div><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>set</b> <span style="color: #359700">curveBall</span> <b>to</b> <span style="color: #3a00ff"><i>curves</i></span> 1 <b>of</b> <span style="color: #3a00ff"><i>shape</i></span> "1"</div></div><div><br></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Verdana; "><b>error</b> "pro Fit 6.2.1 got an error: Apple event was not handled. [System error -1708]" <span style="color: #3a00ff">number</span> -1728 <span style="color: #3a00ff">from</span> <span style="color: #3a00ff"><i>curves</i></span> 1 <b>of</b> <span style="color: #3a00ff"><i>shape</i></span> "1"</div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Verdana; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Verdana; ">I can't even find what error -1728 means. Am I accessing the "curves" property correctly? Is this a reasonable way to get to the axes to change their range? </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Verdana; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Verdana; ">Any and all help, much appreciated.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Verdana; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Verdana; ">Dave</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Verdana; "><br></div></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br>http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com<br></blockquote></div><br></div></body></html>