selectWindow
Syntax
on selectWindow
...
end selectWindow
Explanation
Whenever you make a window that is not a palette the active window,
it receives a selectWindow
message. This is a good opportunity to
update the menus or any floating palettes to match the window’s
current states.