tell application "Fetch"
close window "any-window-name"
end tell
Insists on bringing Fetch to the front, which it shouldn't do.
Thanks for reporting this. Fetch is coming to the front in case the
window is busy and it needs your permission to close. It's a bug
that this happens even when the window is not busy, and I will see
about fixing that for a future release.
In the meantime you can work around the problem by telling Fetch that
you want the window closed whether it is busy or not, e.g.:
tell application "Fetch"
close transfer window 1 saving no
end tell
If you specify "saving no" Fetch will immediately close the window,
without asking to be brought to the front.
It can't start a second operation to the same site,
for example, without opening another window.
It's true that Fetch can only have one operation happening at a time
in a window, so it will open a second window if the first window is
busy. But if the first window is idle Fetch should re-use it.