Split an RTF/Word Document At Arbitrary Expression
Okay, I have a question for the discussion-forum hive-mind. I have a Word document (a .doc, also saved as an .rtf file, if one is necessary), which is structured according to an outline form. What I want to do is split this file into a set of smaller files, with each of the smaller files containing text that adheres to the pattern </r></r><a_single_line_of_text></r></r><then_this_block_of_text></r></r>. Is this possible to do with Automator, or perhaps Automator or AppleScript in conjunction with Perl? (Bear in mind I only know of Perl; I don't actually know much about using it.) I really do need a solution to this problem. The outline is over 200 pages, with many small sections, and to do this by hand would take FOREVER. Any help is vastly appreciated!
iMac, Mac OS X (10.7.2), Running iLife, iWork