Repeat for all rows in a table?

How can I do a repeat loop for all the data rows of a table? Like repeat actions for the info from each data row in a table. I’ve found code for repeat loops with selected rows, but what about for ALL rows.


It would help if you posted some of your code so we could just add a couple of lines for you.

It depends of wether you want to address table cells or the data in them. I’ll assume you want to access the data.

Here’s a generic approach:

repeat with dataRowRef in every data row in data source of table "My Table" in front window
	set dataRowCotents to contents of contents of dataRowRef
	-- do something with the data row
end repeat