Looks like Supertool is really popular tool with growing user scripts amount.
Personally me have several specific for me only checker-scripts which checks different things in my DB. For example I am going develop one additional checker which will check ukrainian names according to some official names’ lists.
The idea is run all such custom checkers “in one click” periodically, say every month.
If the Supertool author and other Gramps users think that this feature makes sense, it would be great to have such ability.
Some update if anybody needs the same as me.
I’ve created such simple checker.sh script
#!/bin/bash
# This script allows package running of different custom Gramps checkers
# which are missing in the "Data Verify tool" addon.
# Get the current date and time
now=$(date +"%Y-%m-%d_%H-%M-%S")
echo "Run checker to verify Ukrainian first names"
gramps -O "Main Tree" -a tool -p name=SuperTool,script=scripts/checker_ua_name.script > "reports/checker_ua_name_${now}.log" 2>&1
echo "Run checker to verify a person Caste attribute"
gramps -O "Main Tree" -a tool -p name=SuperTool,script=scripts/checker_caste.script > "reports/checker_caste_${now}.log" 2>&1
echo "Run checker to verify twins attributes"
gramps -O "Main Tree" -a tool -p name=SuperTool,script=scripts/checker_twins.script > "reports/checker_twins_${now}.log" 2>&1
Linked this discussion from the “See Also” subsection in of the SuperTool wiki docs.
Batching of SuperTool scripts (with an emphasis on automating regular maintenance tasks) would be a good expansion to the SuperTool docs in the README.md#running-from-the-command-line subsection.
@kku One more interesting feature could be to add possibility show and run some Supertool scripts directly in Gramps->…->My Scripts main menu. I mean not all scripts. This list should be configured from anywhere. So, I can create several important for me scripts and run them directly from main menu. That means - Gramps users can extend Gramps possibilities personally under their needs.
I maintain a separate tree with a collection SuperTool scripts as Notes attached to a Person (the person who created them, usually @kku or @PLegoux ). Each script’s description has a hotlink to where the script was shared. There is a ToDo Note that that has a linked index to the scripts with brief descriptions. (This tree also has scripts for running in Python Eval or in the SQL tools.)
I can:
switch to that tree
undock the ToDo gramplet in the People category (make it big on my 2nd screen)
flip through the People (which shows the script index in the ToDo gramplet) until I spot the right script
Yes, I am trying to go back and collect scripts. It is a sloooow process. Some are only useful as pseudocode reference. (I hate pseudocode snippets but still collect them.)
Each SuperTool Script is stored as “SuperTool Script” type Notes within that alternative Gramps Tree. I found saving them as external .script made it too easy to lose scripts. Also, there was no access to the Description nor organizational tools.
I am (trying to) work towards pausing my Gramps tasks because Real Life needs to take precedence. So I do not have time to spend on these tasks.
But such a collection is possible here in Discourse. Did you know that you can attach a .gramps file to postings?
Alternatively, you could coordinate with @kku … such a library for SuperTool is more appropriate to the Isotammi addons collection than the Gramps one. Maybe it could be a General Plugin lib type plugin? However, this is somewhat contrary to the “mission” of SuperTool to be an “ad hoc” database query tool