getting text from text cell of quarkxpress 6.5 tables

Hi,

I have written one small script in applescript for getting text in 2nd column of 2nd row. For example, the table look likes:

One Two Three
Four Five Six
Seven Eight Nine

My script is:

tell application "QuarkXPress"
	tell document 1
		tell page 1
			tell table box 1
				set txt to paragraph 1 of text cell 2 of table row 2
				display dialog txt
			end tell
		end tell
	end tell
end tell

After running this script, it displays “Two” instead of “Five”. (That is, this script takes second column text in first row instead of second column text in second row).

I have also tried “set txt to story 1 of text cell 2 of table row 2”, but we are getting the same result.

Could any one tell me what is wrong with the script.

Thanks,
Gopal

Hi,

Could anyone help me on this.

Thanks,
Gopal