setting the collapsible of a window

here is part of a script that i am trying to get running

--open IE to default homepage tell application "Internet Explorer"
Activate
--open new site in a new window
set b to OpenURL "http://macscripter.net/" toWindow 0
--collapse the new window
set collapsed of window b to true 
end tell

it works fine except for the collapse part. i get an error stating that it cannot set the collapse of the window. – any ideas.

I do not think this is a window property that you can set in IE.
You may be able to do so in the Finder, but it is not system wide.
Eelco Houwink

For that very reason that I would suggest you to use:

tell app IE to set bounds of window 0 to x,y,z,w

in order to get the same effect.
Success.
Eelco Houwink

If you are not using this in X then a more elegant way would be to use Akua…

reposition window1 with collapsing

Andreas