I am bewildered by the behavior of this most trivial Safari repeat.
tell application "Safari"
repeat with
theWindow in the windows
log the
name of
theWindow
end repeat
end tell
What I get in the log is a long list of entries such as the following.
(*name of item 7 of every window*)