This extension is a tutorial on writing scripts to create a custom report. The simple report looks at "all" or "selected" family records and calculates the average age for the father and mother when they got married and when their children were born. The results are displayed in a GEDitCOM II report window or output to an MS Word document. All scripts in this extension generate the same report but using different scripting methods.
The flow chart for scripting is the same for all languages. The key script sections in the flow are listed here in generic terms. You can then see more details on each section for each language by refering to the Internal Scripting, AppleScripting, or Python scripting tutorials.
html elements and then opens the report in a GEDitCOM II window. One sample script instead outputs the report to an MS Word document.To see the scripts covered in this tutorial, open this extension in the GEDitCOM Editor (which you can do in GEDitCOM II by hold down the option key while selecting it). The opened CreateReportTutorial.gplug extension has complete scripts for each language and each one has a short tutorial in this documentation window (click the script name to see the tutorial):
Generation Ages IS.gcscpt: An Internal Script. Expand the "Scripts" section to see it.Generation Ages Python.py: A Python script. Expand the "Scripts" section to see it.Generation Ages To Report.applescript: An AppleScript. To see this script, expand "Properties" section of the extension, click on "other files" and then double click on the script name. It will open in Apple's "Script Editor".Generation Ages To MS Word.applescript: An AppleScript. The only difference in this script from the previous script is that the output is to an MS Word document instead of to a report window.