copy {300, 400, “http://www.macscripter.net”, “WindowName1”, “toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no”} to ¬
{w, h, the_link, the_win_name, the_win_opts}
set the_js1 to “window.open('” & the_link & “', '” & the_win_name & “‘,’” & the_win_opts & “,width=” & w & “,height=” & h & “');”
copy {400, 300, “http://www.yahoo.net”, “WindowName2”, “toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no”} to ¬
{w, h, the_link, the_win_name, the_win_opts}
set the_js2 to “window.open('” & the_link & “', '” & the_win_name & “‘,’” & the_win_opts & “,width=” & w & “,height=” & h & “');”
copy {400, 400, “http://www.google.net”, “WindowName3”, “toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no”} to ¬
{w, h, the_link, the_win_name, the_win_opts}
set the_js3 to “window.open('” & the_link & “', '” & the_win_name & “‘,’” & the_win_opts & “,width=” & w & “,height=” & h & “');”
tell application “Internet Explorer”
try
set front_window to (item 1 of (ListWindows))
set close_front to false
on error
GetURL “about:blank?untitled=yes”
set close_front to true
end try
do script the_js1
do script the_js2
do script the_js3
if close_front = true then CloseWindow ID (item -1 of (ListWindows))
end tell
–this script was automatically tagged for
–color coded syntax by Script to Markup Code