You can set a library panel's visibility to false, but that closes it entirely...
OK, I'll bite: How do you turn it off completely? I tried the app.Open("MyLibPath.indl",false) command to open it, but the rogue panel still appeared.
app.libraries.associatedPanel.visible = false;
But like I said, that closes it, so it's not very helpful unless you want to open the library, quickly pull out an asset and get rid of it...
Incidently, you can move InDesign panels with scripting, but it is horrible and disgusting.
You can do so by parsing and changing the XML workspace files InDesign saves the positions of panels in.
On a Mac, they are in ~/Library/Preferences/Adobe InDesign 5.0/Workspaces/workspace.xml (or at least, they were for CS3).
It's probably not a good idea to make use of this, but it is doable...I have a poorly-written script for sorting panels the way I like them. I never finished it since it turned out to not be worth the effort, but the idea was when a newly-sized monitor was plugged in (or rotated), I could get all the InDesign panels positioned where I wanted them.
Thanks - but that's a bit rich for my blood. I've decide to go Harbs' route and just make the panel go away.