Question #1: Why?
Question #2: Is that ALL the text entities, or only ones on certain layer(s) or color(s) or style(s) or height(s), or containing certain string(s)
Question #3: Do you mean one (1) block definition with one (1) attribute each, and do you already have a block definition?
Question #4: Is the block definition in just the drawing that you want to process, or is it located as a DWG in AutoCAD's search path?
Question #5: Are the text entities at different angles and alignments, and do they want to stay in the same location and orientation as attributes?
Question #6: Are the text entities connected to any registered application or some kind of database extraction thingy?
Question #7: Does any of the text entities belong to any group(s)?