View Single Post
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old February 8th, 2017, 01:00 PM
I don't know if anyone here remembers, but a while back, I wrote a redaction script for people who wanted to author data sets for Hero Lab. The script would redact descriptions so you could have full descriptions in your own copy but remove them from the shared copy, so as to avoid illegal distribution of copyrighted content.

I figured since I now have a GitHub account and an official signature here, I may as well post the redaction script. I was revisiting that code, and I realized that with what I learned in writing the export script, I can rewrite the redaction script properly.

The way I wrote it originally, it read in the .user files as text files, searched (via plain text) for the Description tag, parsed for the substring of the actual description, and replaced it either with other text, or replaced it with a null value.

Now I can properly read it and handle it as an XML file. :-)
EightBitz is offline   #124 Reply With Quote