If I wanted to tell Safari to close it’s browser window, but not quit the whole Safari application, how could I go about doing that? I was thinking something along the lines of this, but it’s obviously not the solution, as it doesn’t work:
tell application “Safari”
do JavaScript “window.close();”
end tell
This is great! Now it turns out that I need to do the same thing with Internet Explorer. Unfortunatly neither of these techniques seem to work with that browser. It appears that IE doesn’t have a “do javascript” call. Hmmmm. It also doesn’t seem to like a “close window 1” call. Unfortunately, in 10.3.4, if I try to drag IE to the script editor to try to acquire it’s dictionary, it tells me that it’s unscriptable. I can’t believe that.