Selecting text in Pages and transferring it to Excel

I’m new to applescript, but I have seen the awesome power that it holds.

I have a list of over 200 names encased in " " that I want to be an excel file. From what I have seen other scripts do, I figure that it should be able to do this operation. I have no idea how to do it, though. A little help?

Hi,

it’s probably possible to to this.
But it depends on whether the text is on “top level” or in a text box.
If the text is in a table, it isn’t accessible with AppleScript

tell application "Pages"
	tell document 1
		set a to body text -- "top level" text
		set b to object text of text box 1 -- text box 
	end tell
end tell