Selecting text in Illustrator by font size

I’m trying to build a script that will go through every text frame in an Illustrator document and pull out text from text frames based on their sizes. Apparently I’m getting the syntax wrong in the line “set thissize to size of character 1 …” Any ideas?

tell application "Adobe Illustrator"
	set textcount to count of every text frame of current document
	repeat with j from 1 to textcount
		set thissize to size of character 1 of text frame j of current document
		if thissize is greater than 12 then set thisheadline to contents of text frame j of current document
	end repeat
end tell

Whoops! It actually DID work … I just came across an error for a text frame that had zero characters in it. Thanks for looking anyway.