Recall that I'm having a problem with a handler that begins …
on getSelection()
tell application "Finder"
activate
set selList to get selection
I added a few lines of code to get this ...
on getSelection()
tell application "Finder"
activate
set win1 to window 1
try
set folder2 to target of window 2
close window 2
open window of folder2
set index of win1 to 1
end try
set selList to get selection
I tested with this change and found that my problem has gone away.
But, I don't really like this fix. I've tried some simpler code, such as …
set index of window 1 to 1
but that didn't work. I'll try to improve this later.