repeat with a from 0 to searchPages
set countItem to a
try
set updateList to paragraphs of (do shell script "curl --silent [url=http://domain.com/search/]http://domain.com/search/"[/url] & searchCat & "/" & countItem & "/" & seedterm & " | grep \"<td align=\" | sed 's/<td align=\"right\">//' | sed 's/<\\/td>//'")
end try
set end of outputList to contents of updateList
end repeat
repeat with a from 0 to searchPages
set countItem to a
try
set updateList to paragraphs of (do shell script "curl --silent [url=http://domain.com/search/]http://domain.com/search/"[/url] & searchCat & "/" & countItem & "/" & seedterm & " | grep \"<td align=\" | sed 's/<td align=\"right\">//' | sed 's/<\\/td>//'")
end try
set updateList to updateList as list
tell a to set seedList to contents of updateList
end repeat
set searchPages to 5
set outputList to {}
repeat with i from 0 to searchPages
try
do shell script "echo " & quoted form of (i as text) -- example
repeat with thisItem in paragraphs of result
set end of outputList to contents of thisItem
end repeat
end try
end repeat
outputList