I wrote a script that is supose to close the “Download Manager” window in Internet Explorer, but for some reason it isn’t working. I tried using “System Events” and Keystroke and Key Code to bring the window forward but it isn’t working. Here is my script.
tell application “System Events”
tell process “Internet Explorer”
keystroke “4” using {command}
–key code 21
end tell
end tell
tell application “Internet Explorer”
CloseWindow --“Download Manager”
end tell