[APBeta] User Field scripts

Sam Finn lsfinn at gmail.com
Sat Jun 8 10:29:05 PDT 2019


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>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.astroplanner.net/pipermail/apbeta-astroplanner.net/attachments/20190608/586d374b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 873 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.astroplanner.net/pipermail/apbeta-astroplanner.net/attachments/20190608/586d374b/attachment.sig>


More information about the APBeta mailing list