Setting Left and Right margins (or indent)

I wrote an AppleScript that exports the RTF file (to the /tmp directory), reads its current margins, allows you to enter new margins, saves those margins into the RTF source code, then opens it with TextEdit for printing. You can download the script from http://www.danshockley.com/downloads/RtfMarginsFromDT_0.9.scpt.zip

I’d design the script to save those changes BACK into DEVONthink, but there is no way to access the source of an RTF file in DEVONthink. That’s too bad, since they made it possible to access HTML source. Would it be possible to allow scripters access to both read and write the RTF source code directly? It would make my life a lot easier.