When collecting a list of Finder windows in Applescript, every window is listed twice. To test, have some Finder window(s) open and run the following in Script Editor:
tell application "System Events" set FinderWins to (windows of (processes whose name = "Finder")) end tell
The result is a nested list with every window listed two times.
Is there a way to avoid this behaviour?