<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thanks Paul,<br>Now I've got yours and Robins :-)<br><br><hr id="stopSpelling">From: paul@ilanga.com<br>To: apbeta@lists.astroplanner.net<br>Date: Sun, 1 Mar 2009 15:13:41 -0800<br>Subject: Re: [APBeta] Running Scripts<br><br>I've updated DSS Gallery to run under V2. When I've done a few more code changes, I'll do some more scripts. I'm taking requests.<div><br></div><div>Paul R.</div><div><br></div><div>(my incoming mail server has been down for a few hours, so I might not reply any time soon to incoming mail)</div><div><br></div><div><br><div><div>On Feb 28, 2009, at 02:00 PM, I.R. van de Stadt wrote:</div><br class="EC_Apple-interchange-newline"><blockquote><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div class="EC_hmmessage" style="font-size: 10pt; font-family: Verdana;"><br>I tried DSS gallery, but had no luck<br><br>with<span class="EC_Apple-converted-space"> </span><font color="#ff0000">sub main()</font><span class="EC_Apple-converted-space"> </span>inserted at line 14<br>and<span class="EC_Apple-converted-space"> </span><font color="#ff0000">end sub</font><span class="EC_Apple-converted-space"> </span>at the end (now line 169)<br><br>There was an error message:<br> <span class="EC_Apple-converted-space"> </span><font color="#0070c0">script error on line 64: Too many parameters</font><br><br>line 64 is<br> <span class="EC_Apple-converted-space"> </span><font color="#76923c">c=new Canvas(w,h,"DSS Gallery")</font><br><br>There it gets to the point that I would have to dive into the scripting manual...<br><br>Celestial Mixmaster probably needs the<span class="EC_Apple-converted-space"> </span><font color="#ff0000">sub main(args() as Variant)</font>, but what goes into the<span class="EC_Apple-converted-space"> </span><font color="#ff0000">args()</font>? or is args itself an existing function, should there go anything into the ()?<br><br>with either the constants left as as before or moved to within the sub main (I tried both ways)<br><br><font color="#00b0f0">scipt error on line 44: there is no class with this name</font><br><br>that is line<br><font color="#00b050"> function findObjectInPlan( planIdx as Integer, obj as APPlanObjectData, fuzzyMatch as Boolean ) as Integer</font><br><br>(there are many more !s but maybe (hopefully) for the same problem)<br>now I'm lost a again<br><br>Any suggestions?<br>Clear Skies<br>Inge<br><br>> Date: Sat, 28 Feb 2009 10:31:51 +0100<br>> From:<span class="EC_Apple-converted-space"> </span><a href="mailto:robin@lauryssen-mitchell.com">robin@lauryssen-mitchell.com</a><br>> To:<span class="EC_Apple-converted-space"> </span><a href="mailto:apbeta@lists.astroplanner.net">apbeta@lists.astroplanner.net</a><br>> Subject: Re: [APBeta] Running Scripts<br>><span class="EC_Apple-converted-space"> </span><br>> Your script needs to contain a sub called main(). For example<br>><span class="EC_Apple-converted-space"> </span><br>> sub main()<br>> print "Main part of your program goes here"<br>> end sub<br>><span class="EC_Apple-converted-space"> </span><br>> See <<a href="http://www.astroplanner.net/reports/details/1500/1533.shtml">http://www.astroplanner.net/reports/details/1500/1533.shtml</a>><br>><span class="EC_Apple-converted-space"> </span><br>> Paul is working on fixing the scripts. If there is one or two in<span class="EC_Apple-converted-space"> </span><br>> particular that are of interest to you, let me know and I'll see if I<span class="EC_Apple-converted-space"> </span><br>> can fix them for you if you like.<br>><span class="EC_Apple-converted-space"> </span><br>> Regards<br>> Robin<br>><span class="EC_Apple-converted-space"> </span><br>> I.R. van de Stadt wrote:<br>> ><br>> > Am I missing something? I can't run any of the scripts, whether<span class="EC_Apple-converted-space"> </span><br>> > converted from V1 or newly downloaded.<br>> > The error is usually<br>> ><br>> > Script must contain a (global) main() method.<br>> > i.e. one of:<br>> > Sub main()<br>> > or<br>> > Sub main(args() as Variant)<br>> ><br>> > Even 'Observing nights' - created in de V2 era gives an error message:<br>> > Script must not contain any calls to the main() method.<br>> ><br>> > Clear Skies!<br>> > Inge<br></div></span></blockquote></div><br></div><br /><hr />Ook nieuwsgierig naar de nieuwe Messenger? <a href='http://windowslive.microsoft.nl/WL/Explore/Messenger' target='_new'>Download 'm hier</a></body>
</html>