Currently Being ModeratedMay 7, 2012 9:17 AM (in response to nick_harambee)
problems like this are usually solvable by splitting up the line. It doesn't look like it, but there's a whole lot going on in that compound statement. try:
tell application "iTunes"
set ratingList to (rating of tracks whose album is thisAlbum)
repeat with R in ratingList
if R > 80 then set R to 80
set songRating to songRating + R