Writing Extensions → Tutorial Index
The "Create Report Tutorial" extension is a tutorial on writing scripts for to create custom reports. If you are reading this help in , you already have the extension. If you are reading it in an on-line version of this documentation or within GEDitCOM Editor help, you should download and install the "Create Report Tutorial" extension before preoceeding. You can download using a link on this web site. Alternatively, you can install using the Extensions→Utilities→Download Extension menu command in and choose "Custom Report Tutorial" from the list that appears.
The simple report created in this tutorial 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 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, Python scripting, or AppleScripting tutorials.
html elements and then opens the report in a window. One sample script instead outputs the report to an MS Word document.To see the scripts covered in this tutorial, open the "Create Report Tutorial" extension in the GEDitCOM Editor (which you can do in by holding down the option key while selecting it) (which is available on geditcom.com). 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 below to see the tutorial (only scripts that work in GEDitCOM are listed):
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.