Google-drive – Extract entries from a Google Docs file into different parts or files

google-drivetext;

In a Google Document I keep a journal. Entries are separated by days, although I sometimes write very often and at other times not so often.

The journal is a continuous document where each entry has the day written in bold and 14 pt while the entry text is not bold and 10 pt.

I wonder if there is any way to extract the text into separated parts or notes, each one corresponding to each different day.

Best Answer

You'll want to write a script using Google Apps Script. Getting started: http://code.google.com/googleapps/appsscript/guide_getting_started.html (the example is for google spreadsheets, but the mechanics are the same for documents)

The relevant API is here: http://code.google.com/googleapps/appsscript/service_document.html

Not sure, but it sounds like you want to loop over the paragraphs via getParagraphs() looking for your entry headers.