Hi, not sure if this is helpful to anyone else, or if there’s a better method, but I was curious about my total editing time of Krita documents, so I wrote this simple script. It should work in Bash on Windows (e.g. Git Bash) and Linux.
Can be used like this:
script.sh doc_A.kra
script.sh doc_*.kra # read multiple files
I haven’t tested it too extensively, seems to work ![]()
#!/bin/bash
function get_time {
unzip -p "$1" documentinfo.xml | \
grep editing-time | \
sed -E 's/ *<\/?editing-time>//g'
}
for f in "$@"
do
if [ -e "$f" ]; then
echo -e "$(get_time "$f")\t$f"
else
echo "File not found: $f"
fi
done
Once you get an output, you can paste it into a spreadsheet or similar and get a sum, at least that’s what I did. The raw value is in seconds.