[APBeta] User Field scripts

Paul Rodman paul at ilanga.com
Thu Jun 27 09:15:15 PDT 2019


I have fixed the issue. However…

I have decided to remove/disable this feature. It has always been a bit fragile, and getting it working properly is even more difficult with the latest development frameworks I am using, since it rquires scripts to run in background threads, and if things go wrong is can easily crash the application. 

I’m pretty sure you’re the only person to even attempt to use this feature, so I imagine it won’t be missed. You can always use a plain-ol’ script that runs and updates script values in the foreground. You can even schedule it to run automatically when certain events happen.

Paul R.

> On Jun 8, 2019, at 10:29 AM, Sam Finn <lsfinn at gmail.com> wrote:
> 
> APBeta V2.3a32 (64bit)
> Mac OSX 10.14.5
> 
> Hi - 
> 
> I’m trying to create a user field script. As a start I’ve tried the example/template script created by the Script Editor, and reproduced on page 292 of the Scripting Manual (v2.1: is there a later version?). Briefly put, I can’t get the example/template to run. 
> 
> In more detail: 
> * Opening the script editor I use the + button to create a new User Field Script. I give it the name RADec. 
> * I select the checkbox “Include in Script menu, with shortcut: None"
> * Changing nothing I save the script. 
> * I push the “Check For Errors” button: no errors are detected. 
> * I push the “Execute” bottom. In a few moments the script terminates. 
> * Selecting my plan document I create the User-defined field RA*Dec (conforming with the ScriptParameter param field in the example/template)
> * I save the plan document
> * With my plan document as the active window, from menubar Edit>List Columns I add the “User: RA*Dec” column, and confirm that the RA and Dec columns are already selected. 
> * Still with the plan document as the active window use menubar Script>RADec to execute the script. 
> 
> Neither the appropriate column nor the User-defined Fields RA*Dec values appear: i.e., everything was blank before executing the script, and remains blank after executing the script. I get no error messages or other diagnostics. 
> 
> Any help/suggestions/advice? I’m not sufficiently familiar with scripting to know if this is “user error” or a bug that needs reporting. 
> 
> Thanks, 
> 
> Sam
> 
>> Sam Finn
> lsfinn at gmail.com <mailto:lsfinn at gmail.com>
> 
> 
> 
> 
> _______________________________________________
> APBeta mailing list
> APBeta at lists.astroplanner.net
> http://lists.astroplanner.net/listinfo.cgi/apbeta-astroplanner.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.astroplanner.net/pipermail/apbeta-astroplanner.net/attachments/20190627/c378af32/attachment.html>


More information about the APBeta mailing list